Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
HomeAnnouncementsFree MagazinesWhite PapersSubmit Content
Discussion GroupsASP.NETWindows FormsLanguages.NET FrameworkVisual Studio.NET
Articles.NET FrameworkASP.NETToolsWindows Forms
.NET DirectoryOpen Source ProjectsUser GroupsWeb Resources
Related Topics
Visual Basic 6SQL ServerMS AccessOther DB ProductsMS Server ProductsMore Topics ...

.NET Forum / ASP.NET / General / December 2007

Tip: Looking for answers? Try searching our database.

Failing HTML Validation

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
Jon - 15 Dec 2007 21:26 GMT
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(duration=.5)" >

but when it renders it comes out like

<meta http-equiv="Page-Exit"
content="progid:DXImageTransform.Microsoft.Fade(duration=.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
Scott M. - 17 Dec 2007 04:42 GMT
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

> Hello all,
>
[quoted text clipped - 21 lines]
> Jon Yates
> http://www.nantwichonline.com

Free Magazines

Get these publications absolutely FREE for up to 12 months. There are no hidden fees and no obligation. Simply choose a title, complete the application form and submit it. Read more ...

Oracle MagazineNetwork ComputingComputer WorldBio-IT WorldeWeekInformation WeekInfosecurity
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.