You are here: Re: Technical DOCTYPE question for technophiles « HTML « IT news, forums, messages
Re: Technical DOCTYPE question for technophiles

Posted by Albert Wiersch on 08/11/05 02:22

"Mark Parnell" <webmaster@clarkecomputers.com.au> wrote in message
news:lue2b91jbztt.dlg@markparnell.com.au...
>
> You can't determine whether something is valid unless you have a
> reference to base that determination on. In the case of HTML, that's the
> DTD. I'd be interested to know what other basis of validation there
> could possibly be for HTML. Surely not some random list of "problems"
> that an individual software author comes up with.

The basis used by CSE HTML Validator is a combination of the HTML
specification, DTDs, browser extensions, user issues and problems that have
come up over time, and what works in the real world. It's put together by
myself and is extremely useful in writing good HTML. Much more so than just
a DTD validator, at least in my opinion (and many others). I certainly would
never limit myself to checking HTML documents using only a DTD validator.

For example, a document like the following is completely valid according to
a DTD validator, even though it contains numerous problems. For more info
see
http://www.htmlvalidator.com/htmlval/whycseisbetter.html


<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
"http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<title>Untitled</title>
<meta http-equiv="Content-Type" content="text/html; charset=us-ascii">
<meta name="generator" content="CSE HTML Validator Professional
(http://www.htmlvalidator.com/)">

<style type="text/csss">
p { color: black}
</style>

</head>

<body bgcolor="fffff">

<p style="color: greeen"></p>

img src="somepic.jpg">

<img src="somepic.jpg" alt="description" width="50text">

<a href="http://www.domain.com/images\image.jpg">...</a>

<a href="htp://www.domain.com/">...</a>

<a href="user@domain.com">user@domain.com</a>

<a href="mailto:user@domain.comm">user@domain.com</a>

<p>He said &quot;I'll be there!&quot</p>

<a href="#chapter5">...</a>

<a href="http://www.domain.com/" target="_new">...</a>

<a href="http://www.domain.com/ ">...</a>

<a name="atagid" id="atagid2">...</a>


<table><tr><td>...</table>

<!-- This is a comment with an ending style that may cause problems in
browsers -- >

</body>
</html>


--
Albert Wiersch
http://www.htmlvalidator.com/

 

Navigation:

[Reply to this message]


Удаленная работа для программистов  •  Как заработать на Google AdSense  •  England, UK  •  статьи на английском  •  PHP MySQL CMS Apache Oscommerce  •  Online Business Knowledge Base  •  DVD MP3 AVI MP4 players codecs conversion help
Home  •  Search  •  Site Map  •  Set as Homepage  •  Add to Favourites

Copyright © 2005-2006 Powered by Custom PHP Programming

Сайт изготовлен в Студии Валентина Петручека
изготовление и поддержка веб-сайтов, разработка программного обеспечения, поисковая оптимизация