On 28/01/2011 4:13 AM, Per Jessen wrote:
letely valid
>  don't you think? It's invalid HTML and contains no content.
Yes, I agree.

All HTML/XHTML tags are required to close (XHTML is supposed to be more strict, as it was intended to follow XML structure moreso), but only the ones I mentioned earlier are allowed to self-close with a /. The others require an explicit closing in order to be considered valid.

Example: <p></p>

OT: I am curious to know why the W3C Validator considers <p/> to be valid, when it goes against every bit of documentation from them I've ever read.

I agree with John Hardin though. <head/> is more likely to appear in spam than ham (ham being legit e-mail that the sender wants to be readable by even the most broken of HTML renderers, like Outlook 2010).

- Lawrence

Reply via email to