grigri:
--------------------------------------------------------------------------------
The COL element is empty, so the end tag is forbidden.
And for XHTML-style "empty" elements,
you should include a space. (viz http://www.w3.org/TR/xhtml1/#guidelines )
--------------------------------------------------------------------------------
XHTML is XML, and so no element should be empty. <col/> (with or without the
space) is a shorthand for <col></col> (which is valid for XHTML but not HTML);
the <col /> form is used in XHTML because it allows the old HTML parsers to
parse XHTML; <col/> is equally valid (though not very useful for public
documents).
As an example: Try creating an XHTML page and running it through the W3C's
(X)HTML validator. <col/> will pass the test.
Note that the section you linked to ("HTML Compatibility Guidelines") is marked
as "informative".
grigri:
--------------------------------------------------------------------------------
If you try, you'll see that other empty elements higlight the same way -
<br/>,<img/>,<hr/> will all be errors - you need the space for PSPad to
recognise it, which is consistent with w3c guidelines.
--------------------------------------------------------------------------------
Good point; they should be valid too :-) Perhaps there should be a "strict mode"
option which would allow <xxx/>, and a "normal" (default) option which would
highlight it as an error (as it does now).
grigri:
--------------------------------------------------------------------------------
[url=http://www.w3.org/TR/html401/struct/tables.html#edef-COL]W3C doesn't
agree[/url]
--------------------------------------------------------------------------------
That's the HTML 4.01 specification.
See this page (viz http://www.w3.org/TR/xhtml1/#h-4.6 ) in the XHTML
specification for some useful details.
--
Jacob
<http://forum.pspad.com/read.php?4,43878,44183>
PSPad freeware editor http://www.pspad.com