> this HTML seems perfectly good but won't validate... any idea?
>
> http://www.0011.com/test_size2.html

Signature
-bts
-Motorcycles defy gravity; cars just suck
On Oct 28, 5:29 am, "Beauregard T. Shagnasty"
<a.nony.m...@example.invalid> wrote:
> > this HTML seems perfectly good but won't validate... any idea?
>
[quoted text clipped - 6 lines]
> <!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01//EN"
> "http://www.w3.org/TR/html4/strict.dtd">
great. i tried using strict and it validates except for <img
border="0" ... >
it didn't complain for not using <img /> but just <img >
so only XHTML requires that huh... the strict means strict HTML 4.01
standard, while loose means deprecated stuff is ok?
Safalra (Stephen Morley) - 28 Oct 2007 15:45 GMT
> On Oct 28, 5:29 am, "Beauregard T. Shagnasty"
> <a.nony.m...@example.invalid> wrote:
[quoted text clipped - 8 lines]
> great. i tried using strict and it validates except for <img
> border="0" ... >
Presentational attributes are deprecated and are not permitted with a
strict doctype. To remove the borders from image links use this rule in
your stylesheet:
a img{
border:0;
}
> it didn't complain for not using <img /> but just <img >
> so only XHTML requires that huh...
XHTML does not permit 'empty' elements, so all tags must have a matching
closing tag. The <element /> syntax is a short version of
<element></element>.
> the strict means strict HTML 4.01
> standard, while loose means deprecated stuff is ok?
Basically, although I seem to remember being corrected here (or in ciwah)
when I made that assumption long ago, as it isn't quite accurate.

Signature
Safalra (Stephen Morley)
The 'white-space' Property In CSS:
http://www.safalra.com/web-design/css/white-space-property/
Beauregard T. Shagnasty - 28 Oct 2007 15:53 GMT
>>> this HTML seems perfectly good but won't validate... any idea?
>>> http://www.0011.com/test_size2.html
[quoted text clipped - 8 lines]
> great. i tried using strict and it validates except for <img
> border="0" ... >
Use CSS to set borders.
img { border: 0; }
> it didn't complain for not using <img /> but just <img >
> so only XHTML requires that huh...
Correct.
> the strict means strict HTML 4.01 standard, while loose means
> deprecated stuff is ok?
"loose" is Transitional, which, as the word implies, is for
'transitioning' old legacy documents without needing to remove (most)
presentational markup from the HTML. New documents should all be Strict,
and use CSS for presentation. Also, it does make the markup a lot easier
to maintain.

Signature
-bts
-Motorcycles defy gravity; cars just suck
Beauregard T. Shagnasty - 28 Oct 2007 16:20 GMT
Beauregard T. Shagnasty replied to hisself:
>> great. i tried using strict and it validates except for <img
>> border="0" ... >
>
> Use CSS to set borders.
>
> img { border: 0; }
Oh, and you can also make somewhat fancy borders for images that
resemble picture frames, if that suits your fancy.
img {
border-top: 4px outset #d0d0d0;
border-left: 4px outset #d0d0d0;
border-right: 4px outset #a9a9a9;
border-bottom: 4px outset #a9a9a9;
}
outset or inset ...

Signature
-bts
-Motorcycles defy gravity; cars just suck