473,386 Members | 1,694 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,386 software developers and data experts.

HTML 4.01 Schema in VS2005

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
Jan 18 '07 #1
2 1579
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



Jan 18 '07 #2
"Juan T. Llibre" <no***********@nowhere.comwrote ...
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.
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
Jan 18 '07 #3

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

6
by: Martin | last post by:
Hi, I have a xml file like the one below <?xml version="1.0" encoding="utf-8"?><e1 xmlns:e1="http://tempuri.org/Source1.xsd" e1:att1="1" e1:att2="2" e1:rest="345"/> If I try to create a...
3
by: farseer | last post by:
Hello, i have a schema which also imports the XHTML schema: <xsd:import namespace="http://www.w3.org/1999/xhtml" schemaLocation="http://www.w3.org/2002/08/xhtml/xhtml1-strict.xsd"/> This...
5
by: Rob Roberts | last post by:
Is there any way to change VS2005 to generate HTML 4.01/Strict instead of XHTML 1.0/Transititional? VS2005 puts a DOCTYPE statement specifying XHTML 1.0/Transitional at the top of every new aspx...
2
by: Stephan (Germany) | last post by:
Hello, maybe this qustion sounds silly but in VS2005, I'm looking for the same possibilty to entry data for a predefined XML schema in grid view. In VS2003, you were able to do it if you...
1
by: Chris Lieb | last post by:
I am new to XML Schema and am running into a bit of a snag. I have defined an XML-based scripting language for an updater program that I am working on. I would like to make a schema for this...
1
by: Nogusta123 | last post by:
Hi, I have had a lot of problems getting web pages, master pages and content pages to render in VS2005 design view the same as they would in Internet Explorer. I did a lot of looking on the...
1
by: amir | last post by:
Hi, When compiling a page in VS2005 this morning I received 101 messages regarding schema problems in my web.config file. When I go to view an aspx page in my IIS, IE just displays a blank...
1
by: donnie.hale | last post by:
Question: What's the "canonical" way to import an existing XSD schema file into VS2005 in such a way that I can use standard C# object / property techniques to create content of that schema type...
1
by: =?Utf-8?B?ZGlzY2lwbGluZTRldmVyNjY2?= | last post by:
Hi, the CMS out company wrote a few years ago, uses certain attrbutes not included in any HTML validation known. Is there a way to add these custom attributes to HTML validation within VS2005? I...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.