all groups > visual studio .net general > january 2007 >
You're in the

visual studio .net general

group:

HTML 4.01 Schema in VS2005


HTML 4.01 Schema in VS2005 Fred Chateau
1/17/2007 6:11:49 PM
visual studio .net general:
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

Re: HTML 4.01 Schema in VS2005 Fred Chateau
1/17/2007 7:21:26 PM
"Juan T. Llibre" <nomailreplies@nowhere.com> wrote ...

[quoted text, click to view]

Thank you. I thought that was the case.

My point still is that VS 2005 HTML 4.01 validation is requiring ALL tags to
be closed, including break tags and image tags, in a manner similar to XHTML
1.1 validation.

Is it my installation or is this schema incorrect? (I am using VS 2005
Standard Edition with SP-1.)

--
Regards,

Fred Chateau
http://hotelmotelnow.com

Re: HTML 4.01 Schema in VS2005 Juan T. Llibre
1/17/2007 9:04:37 PM
re:
[quoted text, click to view]

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/
===================================
[quoted text, click to view]


AddThis Social Bookmark Button