by mcav · 17y ago · 0 comments
h1 { this is a header }
p { this is the content. }
HTML5-style optional ending tags might also work: <h1>This is a header
<p>This is some content.
(Though I remain confused about which closing tags are optional in the HTML5 spec. I think h1 tags have to be closed.){h1 This is a header}
Your example doesn't work though, as heading elements can contain paragraphs -- it's identical to "<h1>This is a header <p>This is some content.</p></h1>"
A better example would be: <h1>This is a header</h1> <p>This is some content. <p>This is more content. <ul> <li>Red <li>Blue </ul>
Assuming they are much the same as the HTML 4 tags: