sophie: A cartoon-like representation of a girl standing on a hill, with brown hair, blue eyes, a flowery top, and blue skirt. ☀ (Default)
Sophie ([personal profile] sophie) wrote in [personal profile] hope 2009-06-15 09:18 am (UTC)

Saw this from a link in a comment elsewhere on DW - thanks for this! :)

I actually do want to ask one thing, though. Does self-closing a tag like <img /> actually help in a non-XHTML context? The thing is, the slash to end a self-closing tag isn't actually valid under HTML, only under XHTML - and Dreamwidth doesn't actually serve any XHTML. (In fact, according to the HTML spec, using '<img />' in code should actually render the same as '<img>&gt;' would, because of what's known as SHORTTAG support. However, no browser actually implements this part of the HTML spec because it would break the Web entirely.)

So I'm kind of curious to know whether it does, in this case, help.

Post a comment in response:

This account has disabled anonymous posting.
If you don't have an account you can create one now.
HTML doesn't work in the subject.
More info about formatting