Validation

admin

Administrator
Staff member
I've tried validating my page at W3C, and I get messages that it doesn't recognize things due to the header information being incorrect or inaccurate, which I'm not suprised. The page looks fantastic (IMHO) otherwise! <br />
I know about coding to specification, and I've been careful to keep to the latest spec, but how and where do I find out what belongs in the META tag at the top, as well as the !DOCTYPE information. I saw a list of what they could be, but I couldn't figure out what to place here and what it all really means.<br />
Anybody know any good quickie tutorial thingies that describes this process?<!--content-->You'll need this for Doc type,<br />
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"<br />
<br />
All Capitals, doesnt the validation program point out your errors and how to fix them? If not Ill check back a post a link to one that does.<!--content--><!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"><br />
<br />
(Don't forget the end ">", montroze) :)<!--content-->I have a couple uf URL's with ampersands in them and I'm getting an error on validation. Is it anything to worry about?<!--content-->Try using an underscore or hyphen instead.<!--content-->Alot of the errors seem small, like having no ALT= but it has a purpose for people with that disability, here's a link to try to validate your code, just erase whats in the box and have your coding copied and paste it in the box. See what it comes up with.<br />
<br />
<!-- m --><a class="postlink" href="http://www.htmlhelp.com/tools/validator/direct.html">http://www.htmlhelp.com/tools/validator/direct.html</a><!-- m --><!--content-->I got it down to where the ampersands are causing the only errors for 4.01 transitional. W3C suggests using '&' instead so Netscape 3 users will see it ok. <br />
<br />
I tried the CSS validator for fun and it says <br />
<br />
"To work as intended, your CSS style sheet needs a correct document parse tree. This means you should use valid HTML"<br />
<br />
plus alot of stuff that looks like I'll be busy figuring it out, things like parsing and context errors, although, if I'm looking at what I'm expecting to look at (and wanted to look at), should I bother? <br />
<br />
Hmmmmmmmm.........<!--content-->You may also want to use another validator : <!-- m --><a class="postlink" href="http://cq-pan.cqu.edu.au/validate/">http://cq-pan.cqu.edu.au/validate/</a><!-- m --><!--content-->For the ampersand, you can use the "escape" to make it appear on the web page and have it validate OK too.<br />
<br />
& a m p ;<br />
<br />
(take out the spaces)<!--content-->...is in the address (ie. I cut and paste the www address from the address bar.) I don't think that the anchor would be a valid url then.<!--content-->Ah, OK, for an ampersand in a URL, use the ASCII version of it.<br />
<br />
%26<br />
<br />
For your doctype, this is the one I prefer. N6 seems to like it best as well.<br />
<br />
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"<br />
"http://www.w3.org/TR/1999/REC-html401-19991224/loose.dtd"><!--content-->A bit of an update...<br />
<br />
I just validated a page and it seemed to work...<br />
<br />
In an HREF value, ampersands are allowed. Otherwise I would go with the %26 thing.<br />
<br />
In an SRC value, & a m p ; are allowed and seem to work.<br />
<br />
Hope that works for you to. Cheers!<!--content-->I've just found out that '%26' doesn't work for XHTML 1.0 Strict, you must use '&'. <br />
I've one more quirky thing about this. The validator says:<br />
<br />
... c=ll&objtype=141&objaction=browse" target="_blank"> LiveLink < ...<br />
<br />
Error: there is no attribute "target" for this element (in this HTML version). Now What do I do. If you can't use the "target="_blank" in XHTML 1.0 Strict, what do you think they have in mind for us to do to open a page in a new browser window? The "target" attribute is not allowed in this version. Could I do it using Javascript? Maybe I should migrate to another forum.......<br />
<br />
<br />
<br />
--------------------------------------------------------------------------------<!--content-->
 
Back
Top