---
title: XHTML 2.0
date: 2006-12-10 18:16:50
permalink: https://lesterchan.net/blog/2006/12/10/xhtml-20/
author: Lester Chan
categories:
  - Web
---

Was searching for DOCTYPEs for XHTML 1.1 and came across [Wikipedia article on XHTML 2.0](http://en.wikipedia.org/wiki/XHTML_2.0).

After reading it though, I can’t wait for XHTML 2.0, the features looks great. Below are 3 of the features that I picked out.

**»** Any element will be able to act as a hyperlink, e.g., &lt; li href="articles.html" &gt;Articles&lt; /li &gt;, similar to XLink. However, XLink itself is not compatible with XHTML due to design differences.

**»** Any element will be able to reference alternative media with the src attribute, e.g., &lt; p src="lbridge.jpg" type="image/jpeg" &gt;London Bridge&lt; /p &gt; is the same as &lt; object src="lbridge.jpg" type="image/jpeg" &gt;&lt; p &gt;London Bridge&lt; /p &gt;&lt; /object &gt;.

**»** The alt attribute of the img element has been removed: alternative text will be given in the content of the img element, much like the object element, e.g., &lt; img src="hms\_audacious.jpg"/&gt;HMS &lt; em &gt;Audacious&lt; /em &gt;.