W3C home > Mailing lists > Public > www-validator@w3.org > April 2005

Re: I am indesperate need of help

From: hg safds <introvertedboi@hotmail.com>
Date: Fri, 01 Apr 2005 09:37:19 -0500
Message-ID: <BAY103-F1132FF952CC17D96B73C26D1380@phx.gbl>
To: www-validator@w3.org

Thank you for your help. ;) You made more sense then the F.A.Q. page. ;)

&gt;From: Lachlan Hunt &lt;lachlan.hunt@lachy.id.au&gt;
&gt;Reply-To: www-validator@w3.org
&gt;To: hg safds &lt;introvertedboi@hotmail.com&gt;
&gt;Subject: Re: I am indesperate need of help
&gt;Date: Fri, 01 Apr 2005 00:59:38 +1000
&gt;
&gt;hg safds wrote:
&gt;&gt;Here is my results.
&gt;
&gt;It is *much more convenient* if you simply provide a URL for the
&gt;document in question, rather than copying an entire results page
&gt;into an e-mail.
&gt;
&gt;Tip: Don't panic about having lots of errors, just focus on one at a
&gt;time.
&gt;
&gt;&gt;       No Character Encoding Found! Falling back to UTF-8.
&gt;
&gt;The character encoding for the document needs to be specified.
&gt;There are many to choose from and browsers should not need to guess
&gt;which encoding was used.  You may need to consult the documentation
&gt;for your editor to determine which encoding the files are being
&gt;saved as, but this is commonly ISO-8859-1, US-ASCII or UTF-8.
&gt;Beware of editors that save as Windows-1252, even though they claim
&gt;to use ANSI – they're lying.
&gt;
&gt;http://www.w3.org/International/resource-index.html#charset
&gt;
&gt;&gt;So what should I do? Tell me more...
&gt;&gt;&lt;http://validator.w3.org/docs/help.html#faq-charset&gt;
&gt;
&gt;The FAQ actually does provide some useful information, I assume you
&gt;actually read it before you posted?
&gt;
&gt;&gt;       No DOCTYPE Found! Falling Back to HTML 4.01 Transitional
&gt;
&gt;Use the correct DOCTYPE.
&gt;
&gt;&gt;So what should I do? Tell me more...
&gt;&gt;&lt;http://validator.w3.org/docs/help.html#faq-doctype&gt;
&gt;
&gt;The FAQ provides more than enough information, but I'd recommend you
&gt;use HTML 4.01 Strict or Transitional and start the document with
&gt;this DOCTYPE.  Either of these (not both) should be the first thing
&gt;in the file.  You need to pick the most appropriate for your needs.
&gt;If you are using deprectated features, you need to use transitional,
&gt;although you should work to be able to use strict in the future.
&gt;
&gt;&lt;!DOCTYPE HTML PUBLIC &quot;-//W3C//DTD HTML 4.01//EN&quot;
&gt;    &quot;http://www.w3.org/TR/html4/strict.dtd&quot;&gt;
&gt;
&gt;&lt;!DOCTYPE HTML PUBLIC &quot;-//W3C//DTD HTML 4.01 
Transitional//EN&quot;
&gt;     &quot;http://www.w3.org/TR/html4/loose.dtd&quot;&gt;
&gt;
&gt;Transitional is probably the most appropriate for your needs at the
&gt;moment.
&gt;
&gt;&gt;       /Line 6, column 16/: there is no attribute 
&quot;TOPMARGIN&quot;
&gt;&gt;
&gt;&gt;       |&lt;body topmargin=*&quot;*0&quot; leftmargin=&quot;0&quot; 
bottommargin=&quot;0&quot;
&gt;&gt;rightmargin=&quot;0&quot;&gt;|
&gt;
&gt;Those 4 margin attributes are non-standard, proprietary extensions.
&gt;Remove them and use CSS instead:
&gt;
&gt;body { margin: 0; }
&gt;
&gt;That has exactly the same effect as those attributes.
&gt;
&gt;&gt;       /Line 8, column 22/: document type does not allow element
&gt;&gt;&quot;STYLE&quot; here
&gt;&gt;
&gt;&gt;       |&lt;style type=&quot;text/css&quot;*&gt;*{ }|
&gt;
&gt;Style elements belong within the &lt;head&gt;.  They cannot be used
&gt;anywhere within the &lt;body&gt;.  Move this to the head like this.
&gt;
&gt;&lt;head&gt;
&gt;   &lt;title&gt;Document Title&lt;/title&gt;
&gt;   &lt;style type=&quot;text/css&quot;&gt;
&gt;     body { margin: 0; }
&gt;     /* Insert more CSS here */
&gt;   &lt;/style&gt;
&gt;&lt;/head&gt;
&gt;
&gt;&gt;       /Line 159, column 6/: end tag for element &quot;HEAD&quot; 
which is
&gt;&gt;not open
&gt;&gt;
&gt;&gt;       |&lt;/head*&gt;*|
&gt;
&gt;This often happens when you have used XHTML syntax for an empty
&gt;element such as &lt;link /&gt; or &lt;meta /&gt;.  In HTML, do not use 
the /, it
&gt;has a different meaning in HTML from XHTML, which can cause this
&gt;strange error.  I suspect this would also be the cause of the
&gt;previous error with the style element.
&gt;
&gt;eg. Instead of
&gt;&lt;link rel=&quot;stylesheet&quot; type=&quot;text/css&quot; 
href=&quot;style.css&quot; /&gt;
&gt;use
&gt;&lt;link rel=&quot;stylesheet&quot; type=&quot;text/css&quot; 
href=&quot;style.css&quot;&gt;
&gt;
&gt;&gt;       /Line 160, column 5/: document type does not allow element
&gt;&gt;&quot;BODY&quot; here
&gt;
&gt;This should get fixed by fixing the previous error.
&gt;
&gt;&gt;       /Line 163, column 62/: required attribute &quot;ALT&quot; not
&gt;&gt;specified
&gt;&gt;
&gt;&gt;
&gt;&gt;|...c=&quot;http://www.44caliberlove.com/images/toplayout1.jpeg&quot;*&gt;*|
&gt;
&gt;Images must have alternate text which is used when the images are
&gt;not available for some users for any reason.
&gt;http://www.hixie.ch/advocacy/alttext
&gt;http://www.hixie.ch/advocacy/alt-tooltips
&gt;http://www.htmlhelp.com/feature/art3.htm
&gt;
&gt;&gt;       /Line 166, column 110/: there is no attribute
&gt;&gt;&quot;ALLOWTRANSPARENCY&quot;
&gt;&gt;
&gt;&gt;       |...auto; z-index: 2;&quot; 
allowtransparency=*&quot;*true&quot;&gt;|
&gt;
&gt;That is a non-standard proprietary extension, and I don't even know
&gt;what it's for.  Remove it.
&gt;
&gt;&gt;       /Line 234, column 7/: there is no attribute 
&quot;BORDER&quot;
&gt;&gt;
&gt;&gt;       |border=*&quot;*0&quot; name=&quot;submit&quot; alt=&quot;|
&gt;
&gt;There is no border attribute for that element.  I suspect it's an
&gt;input element, probably a type=&quot;image&quot;.  You could specify the
&gt;border using CSS.
&gt;
&gt;&gt;       /Line 269, column 6/: end tag for element &quot;FONT&quot; 
which is
&gt;&gt;not open
&gt;&gt;
&gt;&gt;       |&lt;/font*&gt;*&lt;/div&gt;|
&gt;
&gt;Remove all font elements!  There is absolutely no reason to continue
&gt;using them, use CSS instead.  To fix this error though, simply
&gt;remove the extraneous &lt;/font&gt; end-tag.
&gt;
&gt;&gt;       /Line 272, column 116/: end tag for &quot;DIV&quot; omitted, 
but its
&gt;&gt;declaration
&gt;&gt;       does not permit this
&gt;&gt;...
&gt;&gt;       /Line 272, column 0/: start tag was here
&gt;&gt;
&gt;&gt;       |*&lt;*div style=&quot;position:absolute; top:475; left:50;
&gt;&gt;width:396px; overflow:
&gt;&gt;       auto; z-|
&gt;
&gt;You need to make sure the start- and end-tags for elements are
&gt;balanced.  ie. For every start tag (&lt;div&gt;), you must have a 
matching
&gt;end tag (&lt;/div&gt;) unless it is an empty element.  Empty elements 
are
&gt;&lt;img&gt;, &lt;br&gt;, &lt;link&gt;, &lt;meta&gt;, etc.  You must also 
make sure elements
&gt;are nested correctly.
&gt;
&gt;This is wrong because the elements are overlapping:
&gt;
&gt;&lt;x&gt;
&gt;     &lt;y&gt;
&gt;     &lt;/x&gt;
&gt;&lt;/y&gt;
&gt;
&gt;This is the correct way:
&gt;&lt;x&gt;
&gt;     &lt;y&gt;
&gt;     &lt;/y&gt;
&gt;&lt;/x&gt;
&gt;
&gt;--
&gt;Lachlan Hunt
&gt;http://lachy.id.au/
&gt;http://GetFirefox.com/     Rediscover the Web
&gt;http://GetThunderbird.com/ Reclaim your Inbox
&gt;

_________________________________________________________________
Take advantage of powerful junk e-mail filters built on patented Microsoft® 
SmartScreen Technology. 
http://join.msn.com/?pgmarket=en-ca&page=byoa/prem&xAPID=1994&DI=1034&SU=http://hotmail.com/enca&HL=Market_MSNIS_Taglines 
  Start enjoying all the benefits of MSN® Premium right now and get the 
first two months FREE*.
Received on Friday, 1 April 2005 14:37:21 UTC

This archive was generated by hypermail 2.4.0 : Friday, 17 January 2020 22:58:50 UTC