[thelist] css class vs id

James Aylard evolt at pixelwright.com
Fri May 10 13:59:01 CDT 2002


> Put quickly, block-level elements include paragraphs, headings, tables,
> DIV's and BODY etc. They can contain othere elements of any type. In

    This isn't always true: only inline content is allowed within <p>
elements [1] and <h1> - <h6> elements [2], for instance. Within <div>
elements [3] and <td> elements [4], however, pretty much anything goes.

1. http://www.w3.org/TR/html4/struct/text.html#edef-P
2. http://www.w3.org/TR/html4/struct/global.html#edef-H1
3. http://www.w3.org/TR/html4/struct/global.html#edef-DIV
4. http://www.w3.org/TR/html4/struct/tables.html#edef-TD

James Aylard

More information about the thelist mailing list