|
Posted by Benjamin Niemann on 10/15/77 11:23
Barbara de Zoete wrote:
> On Mon, 08 Aug 2005 09:56:20 +0100, Jedi Fans
> <"news[at]jedifans[-=dot=-]com"> wrote:
>
>> Toby Inkster wrote:
>>> <div class=picturediv style=width:200px>
>>> <img src=my_picture.jpeg alt='My Picture' width=200
>>> height=160>
>>> <p>This is a caption for the picture above.
>>> </div>
>>>
>> in proper html this would be:
>> <div class="picturediv" style="width:200px;">
>> <img src="my_picture.jpeg" alt="My Picture" width="200" height="160">
>> <p>This is a caption for the picture above.</p>
>> </div>
>>
>
> That all depends on which DTD you use for your html document. With
> transitional the "" are not needed,
This has nothing to do with strict vs. transitional. You can always omit the
quotes around attribute values (in HTML not XHTML), if the value only
contains characters a..z, A..Z, 0..9, and -_.:
See http://www.w3.org/TR/html4/intro/sgmltut.html#h-3.2.2
> neither is the close tag for the paragraph element.
Which is true for HTML 4.01 strict, too.
Are you confusing HTML strict with XHTML?
--
Benjamin Niemann
Email: pink at odahoda dot de
WWW: http://www.odahoda.de/
Navigation:
[Reply to this message]
|