Forum Moderators: open

Message Too Old, No Replies

Tag requirements for 4.01 strict

         

neophyte

2:25 am on Jul 31, 2007 (gmt 0)

10+ Year Member



As indicated in a previous post, I'm migrating from an XHTML Strict doctype to HTML 4.01 Strict doctype. My question in this regards the tag requirements surrounding 4.01 strict - for example, an XHTML doctype requires that all tags are closed, single tag items, such as <br> need to be written <br /> etc.

is there an on-line resource here at WebmasterWorld or elsewhere on the net that I can study exactly what is required to write 4.01 strict compliant HTML?

Thanks to all in advance!

Neophyte

encyclo

2:40 am on Jul 31, 2007 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



Although the site appears to be down at the moment, you can get a good list of HTML 4 elements here:

[htmlhelp.com...]

If you prefer the formal specification, try here:

[w3.org...]

There is no significant difference between HTML 4.01 Strict and XHTML 1.0 Strict, as the latter is a reformulation of the former. You don't have trailing slashes in HTML, so

<br />
becomes
<br>
, same goes for
img
and
meta
. Elements which have closing tags are the same as XHTML 1.0 Strict, although some closing tags are optional in HTML but always required in XHTML.

neophyte

1:19 am on Aug 1, 2007 (gmt 0)

10+ Year Member



encyclo -

Thanks for your guidance on this!

Neophyte