Wrox Programmer Forums
Go Back   Wrox Programmer Forums > Web Programming > HTML > HTML Code Clinic
|
HTML Code Clinic Do you have some HTML code you'd like to share and get suggestions from others for tweaking or improving it? This discussion is the place.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the HTML Code Clinic section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
 
Old April 3rd, 2006, 08:29 PM
Authorized User
 
Join Date: Oct 2004
Posts: 27
Thanks: 0
Thanked 0 Times in 0 Posts
Default ASP/ASPX W3C validation URL

Hi Team,

I've spent the better part of the afternoon finding a DOCTYPE that would allow me to get a clean validation. The following combination worked.

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">

<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />

I've been using

http://www.w3schools.com/site/site_validate.asp

The only problem is that I have to FTP my files to the host so I can give a url to the validator. Is there a site that will upload an ASP/ASPX file and validate it like http://validator.w3.org/ does for HTML and CSS files? This would save me a lot of time.

Thanks

 
Old April 4th, 2006, 01:01 PM
Imar's Avatar
Wrox Author
 
Join Date: Jun 2003
Posts: 17,089
Thanks: 80
Thanked 1,576 Times in 1,552 Posts
Default

Hi there,

Take a look at the Internet Explorer Dev toolbar (search Google for IE dev toolbar). That toolbar has a very convenient "Validate Local HTML" option. Whenever you invoke that command, the toolbar will submit the HTML currently being displayed in the browser to the validation service. This is a great way to validate HTML you have in a localhost or other local network browser session.

Note that you don't need to validate the ASPX; all you need to validate is the resulting HTML.

Hope this helps,

Imar
---------------------------------------
Imar Spaanjaars
Everyone is unique, except for me.
Author of ASP.NET 2.0 Instant Results and Beginning Dreamweaver MX / MX 2004
While typing this post, I was listening to: Bowels of Love by Therapy (Track 5 from the album: Infernal Love) What's This?
 
Old April 7th, 2006, 05:39 PM
Authorized User
 
Join Date: Oct 2004
Posts: 27
Thanks: 0
Thanked 0 Times in 0 Posts
Default

I do that in Opera, guess I never looked in IE.

Thanks

 
Old April 7th, 2006, 05:49 PM
Friend of Wrox
 
Join Date: Jun 2003
Posts: 425
Thanks: 0
Thanked 3 Times in 3 Posts
Default

Or do it with a right-click. :)
http://htmlhelp.com/tools/widgets/#valid

--
http://yupapa.com
 
Old April 8th, 2006, 11:58 PM
richard.york's Avatar
Wrox Author
 
Join Date: Jun 2003
Posts: 1,706
Thanks: 0
Thanked 6 Times in 6 Posts
Default

There's also the web developer extension for Firefox:
https://addons.mozilla.org/firefox/60/


Regards,
Rich

--
Author
Beginning CSS: Cascading Style Sheets For Web Design
CSS Instant Results

http://www.catb.org/~esr/faqs/smart-questions.html





Similar Threads
Thread Thread Starter Forum Replies Last Post
W3C XHTML Validation on ASP:Label control rit01 ASP.NET 2.0 Basics 6 June 26th, 2006 12:30 PM
W3C Validation help!! Mantis HTML Code Clinic 8 April 3rd, 2006 02:04 PM
W3C Validation of FORM steamydave CSS Cascading Style Sheets 2 April 27th, 2005 10:39 AM
New.aspx works but login.aspx fails Validation nigelhamilton BOOK: ASP.NET Website Programming Problem-Design-Solution 8 September 13th, 2004 02:29 AM
Hows this for a URL validation? Kyle Ketterer Pro PHP 2 August 5th, 2003 05:38 AM





Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.