re:
Empty elements in HTML 4.01 should not contain closing tags. Am I mistaken?
Not all elements are subject to that.
http://www.w3.org/TR/html4/intro/sgmltut.html#h-3.2.1
Some HTML element types allow authors to omit end tags (e.g., the P and LI element types).
The HTML DTD indicates for each element type whether the end tag is required.
Some HTML element types have no content.
For example, the line break element BR has no content; its only role is to terminate a line of text.
Such empty elements never have end tags.
The Meta element, however, needs end tags because it should never be an empty element.
Juan T. Llibre, asp.net MVP
asp.net faq :
http://asp.net.do/faq/
foros de asp.net, en español :
http://asp.net.do/foros/
===================================
"Fred Chateau" <we*******@hotelmotelnow.comwrote in message
news:%2****************@TK2MSFTNGP03.phx.gbl...
Is there a problem with the HTML 4.01 schema in Visual Studio 2005?
When I set the target schema for validation to HTML 4.01, I receive closing tag errors.
Example:
Validation (HTML 4.01): Empty elements such as 'meta' must end with />.
I do not believe that is the correct validation. Empty elements in HTML 4.01 should not contain
closing tags. Am I mistaken?
--
Regards,
Fred Chateau
http://hotelmotelnow.com