You are here: Re: Text with automated line-breaks for a picture « HTML « IT news, forums, messages
Re: Text with automated line-breaks for a picture

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]


Удаленная работа для программистов  •  Как заработать на 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

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