Daniel Pitts’ Tech Blog

Posts Tagged ‘w3c’

HTML and ShortTags: Its valid but doesn’t work, or its invalid but it works

Thursday, October 25th, 2007

I discovered something interesting the other day. There are some HTML syntaxes that are surprising, but most browsers don’t support them anyway…

Specifically, <p<a href="/">Some Text</> some other text is technically the same as <p><a href="/">Some Text</a> some other text. Unfortunately, most browsers don’t properly support SGML short-tags, so the outcome is likely different than the spec says it should be.

Read more about this at w3c html blog.