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 Jeff Dege on 08/04/07 00:26

On Fri, 03 Aug 2007 16:21:00 -0700, Jim Moe wrote:

> 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?

Microsoft's, of course. Visual Studio.

(There are times where I really miss editing html in vi.)

--
Of all the dogs I have known the terrier has the best memory for friends.
Even casual friends are not forgotten if once accepted. As for the
master, what can exceed the patience and fidelity of the terrier if
once his heart is given; and if he is a little jealous and exclusive,
after all that is not peculiar to dogs.
-T.F. Dale

 

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

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