|
Posted by Joel Shepherd on 11/25/34 11:51
"Andy Dingley <dingbat@codesmiths.com>" <dingbat@codesmiths.com>
wrote:
> Joel Shepherd wrote:
> > The benefit (assuming the doctype is correct: it looks plausible) is
> > that you can now pass the page source through a validator, which in turn
> > will tell you whether your HTML is valid (i.e., well-formed).
>
> Please don't confuse validity and well-formedness.
Uh ... Yeah, that's a good point. I don't have a strict definition in
front of me, but I believe it's reasonable to say that well-formedness
includes points such as elements that require end tags, having end tags,
proper nesting of elements, and proper key-value-separator syntax for
attributes. It wouldn't include points such as specific element and
attribute names, logical nesting rules (e.g., p can include span but not
vice-versa), order and frequency of certain elements such as html, head
and body, and so on. The latter go beyond well-formedness and are the
province of the validator.
Clearer?
--
Joel.
Navigation:
[Reply to this message]
|