3

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

Community
  • 1
  • 1
Mike
  • 3,515
  • 10
  • 44
  • 67

1 Answers1

7

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.

alecwhardy
  • 2,698
  • 6
  • 27
  • 33