473,396 Members | 1,879 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,396 software developers and data experts.

Failing HTML Validation

Jon
Hello all,

I have written a site that I am trying to validate at http://validator.w3.org/,
However, I have a number of failues as .net is putting in trailing
slashes. For example, in my code I have

<meta http-equiv="Page-Exit"
content="progid:DXImageTransform.Microsoft.Fade(du ration=.5)" >

but when it renders it comes out like

<meta http-equiv="Page-Exit"
content="progid:DXImageTransform.Microsoft.Fade(du ration=.5)" />

This causes the page to fail. Can anyone please help as I want to get
rid of the trailing slashes.

The site in question is; http://www.nantwichonline.com on the
homepage.

Regards,

Jon Yates
http://www.nantwichonline.com
Dec 15 '07 #1
1 997
The markup that VS is generating is fine, it's your DOCTYPE that's
incorrect. Your DOCTYPE indicates you are writing HTML 4.01 Transitional,
where the trailing slash is illegal, but VS generates XHTML 1.0 (and places
that DOCTYPE into the code), where the trailing slash is required on tags
that don't normally get closed.

You can either leave VS's generated DOCTYPE tag alone (not change it to HTML
4.01) or you can manually change your code to be compliant with HTML 4.01.
I'd suggest you simply let VS generate the XHTML as it does by default.

-Scott

"Jon" <Jo*******@gmail.comwrote in message
news:5f**********************************@s8g2000p rg.googlegroups.com...
Hello all,

I have written a site that I am trying to validate at
http://validator.w3.org/,
However, I have a number of failues as .net is putting in trailing
slashes. For example, in my code I have

<meta http-equiv="Page-Exit"
content="progid:DXImageTransform.Microsoft.Fade(du ration=.5)" >

but when it renders it comes out like

<meta http-equiv="Page-Exit"
content="progid:DXImageTransform.Microsoft.Fade(du ration=.5)" />

This causes the page to fail. Can anyone please help as I want to get
rid of the trailing slashes.

The site in question is; http://www.nantwichonline.com on the
homepage.

Regards,

Jon Yates
http://www.nantwichonline.com
Dec 17 '07 #2

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

Similar topics

7
by: Jean Pierre Daviau | last post by:
Hi, <script language="javascript" type="text/javascript"> if(navigator.appName.indexOf("Netscape") != -1){ document.writeln('<link rel="stylesheet" href="~styles/aquarelle_ns.css"...
3
by: dfielder | last post by:
I'm using the latest version of Xerces-J and parsing an XML file using the 'org.apache.xerces.parsers.SAXParser' parser. The problem I have is that a value such as 'file:///c:/#test#.jpg' is...
2
by: Nick Gilbert | last post by:
Hi I have a number of pages where it is valid for the user to enter HTML. On these pages, I have turned off RequestValidation ("ValidateRequest = false" in the page directive) so that the...
9
by: Alan Silver | last post by:
Hello, I am writing a web form where the user is allowed to enter HTML into one of the textboxes. This of course generates the "potentially dangerous" server error. Now I know I can switch...
1
by: David R | last post by:
'lo I've been investigating cases where my server controls (in ASP.NET1.1) are populated with valid values, but return empty strings when their .Value property is getted and their associated...
12
by: Nalaka | last post by:
Hi, I suddenly started getting a lot of errors from html validation (some CSS) so I followed the following instructions to disable it. If you'd rather not have these types of HTML validation...
40
by: VK | last post by:
Hi, After the response on my request from W3C I'm still unclear about Tidy vs. Validator discrepansies. That started with <IFRAME> issue, but there is more as I know. Anyway, this very basic...
8
by: =?Utf-8?B?U2hhd24gUmFtaXJleg==?= | last post by:
I am coming at the world from the standpoint of a veteran ASP Classic developer. I am not clear on the advantages of using the ASP.NET control over standard HTML control. With the ASP.NET...
6
by: GarryJones | last post by:
The following function checks to see if a variable read from a mysql database is numeric. The funtion worked until I hit the value 15 303 That is a valid number but because of the space between...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
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
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...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...

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.