Where did the link go IE?
At work I noticed some HTML links weren't working in InternetExplorer; the HTML is still recognised as a link but clicking it does nothing. Here is some sample code to demonstrate the issue:
<a href="http://www.google.com">
<table>
<tr>
<td>Hello</td>
</tr>
</table>
</a> |
Other browsers seem to render this with working link just fine.
Apparently this is not correct HTML, but the standard only specifies how valid code should work, not how invalid code should work and it is therefore up to the implementation to define what to do in that instance. It's a shame that every other browser does something logically expected, but IE plays the odd-one-out.
Obscure html tags
I recently looked through some HTML tags I'd never used before. The first is an abbreviation tag (<abbr>) to allow float overs for any abbreviated text. For example:
FWIW this is a poor example
the code for which looks like this:
<abbr title="For What It's Worth">FWIW</abbr> this is a poor example |
The second is a text direction tag (<bdo>) that merely indicates if the text runs left-to-right (default) or right-to-left. For example:
Hello World
This code for which is:
<bdo dir="rtl">Hello World</bdo> |