On 29-10-2011 23:45, Doug Miller wrote:
> On 10/29/2011 3:01 PM, thedarkman wrote:
>> This is my latest effort
>>
>> http://validator.w3.org/check?uri=ht...Inline&group=0
>>
>>
>> 899 errors and 2 warnings. Can someone tell me what the warnings mean?
>> And what they might be?
>
> Never mind the warnings. Fix the 899 errors first.
>>
>> Some errors appear to be cumulative because when I took out 34 errors
>> the number dropped from around 990 to 899.
>>
>> A couple of points; when I learned the basics I read that some codes
>> don't need closing, especially<br> and<p>, so I left them out.
>
> <br> didn't -- and in HTML, still doesn't -- need closing. It does in XML.
>
> <p> on the other hand has always been required to be accompanied by </p>.
perhaps is the closing tag for paragraph not needed for html 4.01 but
for xml / xhtml is the closing tag needed.
http://www.webstandards.org/learn/faq/#p2131
[qoute]
XHTML 1.0 also uses the model of three DTDs: Strict, Transitional, and
Frameset. This model originally emerged in HTML 4.0 and followed through
to HTML 4.01.
Some important technical practices from XML onto XHTML includes:
That all document types are declared via the correct DOCTYPE
declaration
That the structure of a conforming document contain the DOCTYPE
declaration, an html element with the XHTML namespace declared, a head
element including the title element, and a body element
That all elements and attribute names are written in lower case,
and that all attribute values are quoted
That all non-empty elements (e.g. p, li) are properly terminated
with a closing tag
That all empty elements (e.g. br, hr, img) are properly terminated
with a trailing slash (<br />)
That documents validate against the DTD that is declared
[/qoute]
--
Edwin van der Vaart