HTML: Is it valid to put element other than <li> into <ul>?

html

Solution

Directly inside a <ul> or <ol> element, you can only have <li> elements and other <ul> or <ol> elements. All other tags need to be inside of <li>'s.

Problem

Possible Duplicate: Can we use any other TAG inside <ul> along with <li>? Or say, `<UL>` can only contain `<LI>`? or it will be invalid? I looked up the definition however seem they did not specify this. see http://reference.sitepoint.com/html/ul

Original source

Related problems