4.1.2. Content selection by markup

The second strategy requires some functionalities on the server and application level.

Example:

<p>For more information about mobile enabled web services, please visit the <a href="http://webcab.de/" hreflang="en" type="text/html">WebCab.de Web site</a>.</p>

The attribute 'hreflang' specifies the base language of the resource designated by 'href'. "This attribute gives an advisory hint as to the content type of the content available at the link target address. It allows user agents to opt to use a fallback mechanism rather than fetch the content if they are advised that they will get content in a content type they do not support. Authors who use this attribute take responsibility to manage the risk that it may become inconsistent with the content available at the link target address." [15]

Even if browsers must support these attributes 'hreflang' and 'type', it is very likely that the current browsers in mobile devices do not support them. Therefore, you shouldn't rely on this strategy.

Copyright © 2001-2003 by Rainer Hillebrand and Thomas Wierlemann