Changes in HTML 5

Converting to HTML 5

What's new in HTML 5

Differences between HTML 5 and earlier versions

The media attribute has been added for consitency with the <link> tag

The following attributes should not be coded on the <script> tag because they either have been deprecated or were never officially supported:

In HTML 5, you can put the <a> tag around block elements in addition to inline elements. This means that links can appear where they couldn't before. For example, you can turn a whole HTML table row into a link:

<table>
<tr><td>Label:</td><td>Data...</td></tr>
...
<tr onclick="location=this.getElementsByTagName('a')[0]">
<a href="new-row.html"/>
<td colspan="2">Add a Row</td>
</tr>
</table>

Prev: Examples Next: rel="alternate" 

Home > HTML Tags > HTML <a> Anchor Tag > Differences

Viewing mobile website page. Switch to WML or Full HTML