help with validation |
help with validation |
bc- |
Aug 2 2009, 10:03 PM
Post
#1
|
Advanced Member Group: Members Posts: 101 Joined: 2-July 09 Member No.: 9,054 |
someone help me validate this! iv'e been trying, and for some reason, its taking a bunch of crap from my links and saying that theres something wrong with them :S
also the autocomplete="off" i no its not strict, and i was looking for something that was, but couldn't find anything. thanks lol editing cause i forgot to post the code XD CODE <!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd"> <html> <head> <title>Brandon's Home Page</title> <meta name="author" content="Brandon Cormier"> <meta name="keywords" content="Brandon,Goodle,Image,You,Tube,Kijiji,Search"> <meta name="discription" content="Personalized Google, Google Image, You-Tube, and Kijiji search"> <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1"> <style type="text/css"> p.x {font-weight:bold;font-family:Arial,Verdana,Sans-serif; font-size:80%;margin-top:-4px;word-spacing:6.5px;} a:link {font-weight:normal;} a:visited {color:#0000CC;font-weight:normal;} a:hover {text-decoration:none;font-weight:normal;} table.aa {margin-left:217px;margin-top:20px;} p.a {text-align:center;margin-top:0px;margin-bottom:0px;padding:0px;} img.b {border:0;width:352px;height:95px;} img.c {width:60px;height:25px;vertical-align:middle;} img.d {width:53px;height:19px;vertical-align:middle;} img.e {width:56px;height:22px;vertical-align:middle;} td {text-align:center;padding:2px;} p.xx {text-align:right;margin-top:-29px;font-family:Arial,Verdana,Sans-serif;font-size:80%;} </style> </head> <body> <p class="x">Web <a href="http://images.google.ca/imghp?hl=en&tab=wi">Images</a> <a href="http://video.google.ca/?hl=en&tab=wv">Videos</a> <a href="http://maps.google.ca/maps?hl=en&tab=wl">Maps</a> <a href="http://news.google.ca/nwshp?hl=en&tab=wn">News</a> <a href="http://groups.google.ca/grphp?hl=en&tab=wg">Groups</a> <a href="http://mail.google.com/mail/?hl=en&tab=wm">Gmail</a> <a href="http://www.google.ca/intl/en/options/">more</a> <p class="xx"><a href="http://www.google.ca/ig?hl=en&source=iglk">iGoogle</a> | <a href="http://www.google.com/accounts/Login?hl=en&continue=http://www.google.ca/">Sign in</a> </p> <table class="aa" border="0"> <tr> <td> <p class="a"><a href="http://www.google.ca/"><img class="b" src="file:///C:/Documents%20and%20Settings/ Brandon%20Cormier/My%20Documents/My%20Pictures/brandonsearch.png" alt="Brandon Search"></a></p> </td> <td> </td> </tr> <tr> <td> <form autocomplete="off" method="get" action="http://www.google.com/search"><div><input type="text" name="q" size="54" maxlength="255" value=""></div></form> </td> <td> <img class="c" src="http://www.logodesign.com/logo_design/wp-content/google-logo.jpg" alt="Google"> </td> </tr> <tr> <td> <form autocomplete="off" method="get" action="http://images.google.com/images"><div><input type="text" name="q" size="54" maxlength="255" value=""></div></form> </td> <td> <img class="d"src="file:///C:/Documents%20and%20settings/Brandon%20cormier/My%20Documents/My%20pictures/ imagelogo.png" alt="images"> </td> </tr> <tr> <td> <form autocomplete="off" method="get" action="http://www.youtube.com/results"><div><input type="text" name="search_query" size="54" maxlength="128" value=""></div></form> </td> <td> <img class="e" src="http://thefinancialbrand.com/wp-content/uploads/2008/01/youtube.jpg" alt="You-Tube"> </td> </tr> </table> </body> </html> This post has been edited by bc-: Aug 2 2009, 10:04 PM |
pandy |
Aug 3 2009, 05:02 AM
Post
#2
|
🌟Computer says no🌟 Group: WDG Moderators Posts: 20,730 Joined: 9-August 06 Member No.: 6 |
Good boy, validating!
CODE Line 30, character 46: ... images.google.ca/imghp?hl=en&tab=wi">Images</a> Ampersands in URLs must be escaped with & -> ...en&tab=wi . The nest two errors have the same cause. http://htmlhelp.com/tools/validator/problems.html.en#amp 'autocomplete' is an MS extension and will never validate. There is no standard way to do this. |
bc- |
Aug 3 2009, 09:53 AM
Post
#3
|
Advanced Member Group: Members Posts: 101 Joined: 2-July 09 Member No.: 9,054 |
OK, that fixed everything, except the auto complete how are you supposed to do this then, or are you just not?
because i no Google uses it.... |
pandy |
Aug 3 2009, 11:40 AM
Post
#4
|
🌟Computer says no🌟 Group: WDG Moderators Posts: 20,730 Joined: 9-August 06 Member No.: 6 |
Either you do it and live with the error or you don't do it and leave user preferences up to users.
|
bc- |
Aug 3 2009, 02:31 PM
Post
#5
|
Advanced Member Group: Members Posts: 101 Joined: 2-July 09 Member No.: 9,054 |
hmm, well validation is to find problems, and this is not really a problem, because what its supposed to do works, so i guess ill just leave it. although it kills me inside to know that i will never validate again D:
|
Darin McGrew |
Aug 3 2009, 03:49 PM
Post
#6
|
WDG Member Group: Root Admin Posts: 8,365 Joined: 4-August 06 From: Mountain View, CA Member No.: 3 |
You could use a custom DTD:
http://htmlhelp.com/tools/validator/customdtd.html That's what I do for my personal site, because I want to use <base target="_top"> but otherwise I want to use HTML 4.01 Strict. |
bc- |
Aug 4 2009, 08:32 PM
Post
#7
|
Advanced Member Group: Members Posts: 101 Joined: 2-July 09 Member No.: 9,054 |
This will work great!
but I don't no how cant make sense of the link can you explain how to make a custom DTD or share a link explaining how to do so.. ...that i understand.... |
Darin McGrew |
Aug 5 2009, 10:58 AM
Post
#8
|
WDG Member Group: Root Admin Posts: 8,365 Joined: 4-August 06 From: Mountain View, CA Member No.: 3 |
Well, I made my custom DTD by replacing parts of the Strict DTD with parts of the Transitional DTD, but you need to understand what parts specify the things you want to change. The URL I gave you is the clearest explanation I know.
|
bc- |
Aug 6 2009, 05:51 PM
Post
#9
|
Advanced Member Group: Members Posts: 101 Joined: 2-July 09 Member No.: 9,054 |
ok, this is what i added
CODE autocomplete (ON|OFF) OFF -- set history in search engine -- to make it CODE <!--================ Forms ===============================================--> <!ELEMENT FORM - - (%block;|SCRIPT)+ -(FORM) -- interactive form --> <!ATTLIST FORM %attrs; -- %coreattrs, %i18n, %events -- action %URI; #REQUIRED -- server-side form handler -- method (GET|POST) GET -- HTTP method used to submit the form-- enctype %ContentType; "application/x-www-form-urlencoded" accept %ContentTypes; #IMPLIED -- list of MIME types for file upload -- name CDATA #IMPLIED -- name of form for scripting -- onsubmit %Script; #IMPLIED -- the form was submitted -- onreset %Script; #IMPLIED -- the form was reset -- accept-charset %Charsets; #IMPLIED -- list of supported charsets -- autocomplete (ON|OFF) OFF -- set history in search engine -- > <!-- Each label must not contain more than ONE field --> <!ELEMENT LABEL - - (%inline;)* -(LABEL) -- form field label text --> <!ATTLIST LABEL %attrs; -- %coreattrs, %i18n, %events -- for IDREF #IMPLIED -- matches field ID value -- accesskey %Character; #IMPLIED -- accessibility key character -- onfocus %Script; #IMPLIED -- the element got the focus -- onblur %Script; #IMPLIED -- the element lost the focus -- > <!ENTITY % InputType "(TEXT | PASSWORD | CHECKBOX | RADIO | SUBMIT | RESET | FILE | HIDDEN | IMAGE | BUTTON)" > look right? |
bc- |
Aug 6 2009, 06:10 PM
Post
#10
|
Advanced Member Group: Members Posts: 101 Joined: 2-July 09 Member No.: 9,054 |
i got this crap:
QUOTE Unable to Determine Parse Mode! The validator can process documents either as XML (for document types such as XHTML, SVG, etc.) or SGML (for HTML 4.01 and prior versions). For this document, the information available was not sufficient to determine the parsing mode unambiguously, because: in Direct Input mode, no MIME Media Type is served to the validator No known Document Type could be detected No XML declaration (e.g <?xml version="1.0"?>) could be found at the beginning of the document. No XML namespace (e.g <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en">) could be found at the root of the document. As a default, the validator is falling back to SGML mode. Using Direct Input mode: UTF-8 character encoding assumed Unlike the “by URI” and “by File Upload” modes, the “Direct Input” mode of the validator provides validated content in the form of characters pasted or typed in the validator's form field. This will automatically make the data UTF-8, and therefore the validator does not need to determine the character encoding of your document, and will ignore any charset information specified. If you notice a discrepancy in detected character encoding between the the “Direct Input” mode and other validator modes, this is likely to be the reason. It is neither a bug in the validator, nor in your document. Fatal Error: cannot find "file:///C:/Documents%20and%20Settings/Brandon%20Cormier/My%20Documents/ HTML4plus.dtd.txt"; tried I could not parse this document, because it makes reference to a system-specific file instead of using a well-known public identifier to specify the type of markup being used. You should place a DOCTYPE declaration as the very first thing in your HTML document. For example, for a typical XHTML 1.0 document: <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"> <html xmlns="http://www.w3.org/1999/xhtml" lang="en" xml:lang="en"> <head> <title>Title</title> </head> <body> <!-- ... body of document ... --> </body> </html> For XML documents, you may also wish to include an "XML Declaration" even before the DOCTYPE Declaration, but this is not well supported in older browsers. More information about this can be found in the XHTML 1.0 Recommendation. |
Christian J |
Aug 6 2009, 06:56 PM
Post
#11
|
. Group: WDG Moderators Posts: 9,656 Joined: 10-August 06 Member No.: 7 |
Another way is to insert invalid things with javascript, that way the validator will never see any of it.
|
Darin McGrew |
Aug 6 2009, 07:03 PM
Post
#12
|
WDG Member Group: Root Admin Posts: 8,365 Joined: 4-August 06 From: Mountain View, CA Member No.: 3 |
Well, the XHTML techniques for specifying encoding won't work for HTML, so if you're going to use direct input, add
CODE <meta http-equiv="content-type" content="text/html; charset=iso-8859-1"> to your document's head element. (Replace iso-8859-1 with whatever character encoding you're using.) |
Darin McGrew |
Aug 6 2009, 07:04 PM
Post
#13
|
WDG Member Group: Root Admin Posts: 8,365 Joined: 4-August 06 From: Mountain View, CA Member No.: 3 |
Ah, never mind. It looks like your DTD is sitting on your hard drive, but you're using a public validator. Either use your own validator, or make the DTD available on the web somewhere and use that URL.
|
bc- |
Aug 6 2009, 07:08 PM
Post
#14
|
Advanced Member Group: Members Posts: 101 Joined: 2-July 09 Member No.: 9,054 |
thats already in there :0
|
bc- |
Aug 6 2009, 07:09 PM
Post
#15
|
Advanced Member Group: Members Posts: 101 Joined: 2-July 09 Member No.: 9,054 |
what?
|
bc- |
Aug 6 2009, 07:09 PM
Post
#16
|
Advanced Member Group: Members Posts: 101 Joined: 2-July 09 Member No.: 9,054 |
<!DOCTYPE HTML SYSTEM"file:///C:/Documents%20and%20Settings/Brandon%20Cormier/My%20Documents/
HTML4plus.dtd.txt"> note the "system" |
Darin McGrew |
Aug 6 2009, 07:11 PM
Post
#17
|
WDG Member Group: Root Admin Posts: 8,365 Joined: 4-August 06 From: Mountain View, CA Member No.: 3 |
Note the "file:///C:/..."
|
bc- |
Aug 6 2009, 07:14 PM
Post
#18
|
Advanced Member Group: Members Posts: 101 Joined: 2-July 09 Member No.: 9,054 |
But you said I was using a public DTD, but I'm not cause it says "SYSTEM"... right?
|
bc- |
Aug 6 2009, 07:48 PM
Post
#19
|
Advanced Member Group: Members Posts: 101 Joined: 2-July 09 Member No.: 9,054 |
O wow I'm finally understanding your other post
I thought the validator would read the DTD off my hard drive So what are you talking about this "own validator" |
pandy |
Aug 6 2009, 08:24 PM
Post
#20
|
🌟Computer says no🌟 Group: WDG Moderators Posts: 20,730 Joined: 9-August 06 Member No.: 6 |
The validator actually fetches the DTD and checks the document against it. If you use a validator sitting on the web, like the one at this site, it can't access your harddrive.
Either upload the DTD to a server where it is accessible from the web or install a validator on your own machine. http://htmlhelp.com/tools/validator/offline/index.html.en The only one that won't cause you headache to install is ARV (link on above page). Personally I think a this is is overkill for personal use. You know what causes the error and that it isn't harmful. Big deal? I don't think so. |
Lo-Fi Version | Time is now: 24th April 2024 - 07:52 PM |