You are here: Re: img tag in XHTML strict « HTML « IT news, forums, messages
Re: img tag in XHTML strict

Posted by Els on 01/14/06 00:42

David Dorward wrote:

> tochiromifune wrote:
>
>> My page fails the W3C validation test because my <img> tags are not
>> included in block level tags. Does that mean I must write:
>> <p><img src="" alt="" /></p>
>> instead of
>> <img src="" alt="" />
>
> An image where the alternative text is a null string is unlikely to be a
> paragraph. A div is more likely to be the most appropriate markup.

If you just enclose your entire page in one div, it might save you
some code, depending on how many loose images you have in it.

--
Els http://locusmeus.com/
Sonhos vem. Sonhos vão. O resto é imperfeito.
- Renato Russo -

 

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

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