html elements and nesting rules
Description Type Nests in Contains
basic html all html must be nested inside this element basic NA head, body
body all content that will appear in your browser window goes in this element basic html any block element
block p the content is considered by the browser to be a paragraph block body, div, blockquote, li any inline element, text
div creates a division on the page block body, div, blockquote, li any content
inline img tells the browser to insert an image inline any block element except a, text empty element
a the content is a link inline
blockquote no
li yes
ul no
any inline element except a, text
strong the content is strong inline any block element except blockquote, ul, ol any inline element except img, text
  1. red
  2. blue
  3. purple
  4. black
  5. white

Valid XHTML 1.0 Strict