You are here: Re: Layout of self-closing divs - can anyone explain this? « HTML « IT news, forums, messages
Re: Layout of self-closing divs - can anyone explain this?

Posted by Jim Moe on 08/03/07 23:21

Jeff Dege wrote:
>>> I'm trying to lay out some divs that have content inserted via
>>> javascript. Just because it's cleaner, I've been using self-closing
>>> div elements: "<div />"
>>>
>> That is XML syntax, not HTML. To an HTML parser "<div />" resolves to
>> "<div>".
>> Run the code through a validator.
>
> I'd figured that since every time I type "<br>" into my editor, it
> changes it to "<br />", that HTML 4+ had incorporated self-closing
> elements.
>
What editor are you using that is so helpful?

--
jmm (hyphen) list (at) sohnen-moe (dot) com
(Remove .AXSPAMGN for email)

 

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

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