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