You are currently using a web browser that does not support HTML 5 with style sheets. Please try the standard HTML 5, XHTML 1 or XHTML 1 Mobile version of this page instead.

Converting to HTML 5

We are working on converting to HTML 5. Please visit HTML <link rel="alternate"> Tag on the HTML 5 standard version of this site.

The rel="alternate" Relationship

Alternate language translations

The rel="alternate" attribute along with a hreflang attribute provides access to another version of the document in a different written language.

Examples


Specific Versions for Different Media Devices

The rel="alternate" attribute along with a media attribute provides access to another version of the document intended for a different media. This can be used to support browsers with different screen sizes, such as cell phones and other handheld devices with smaller-sized screens.

Examples


Alternate Formats for Other Content Delivery Channels

The rel="alternate" attribute along with a type attribute provides access to similar content in an alternate format. For example, this can be used to reference the syndicated feed for a blog.

Examples

<link rel="alternate feed" type="application/rss+xml" href="/blog/rss-feed.xml"/>

Differences between HTML 5 and earlier versions

Although browsers should assume that the referenced content is a feed when the type attribute is recognized as a known feed format, it is probably better to include "feed" in the rel tag.

Last updated Sunday September 19, 2010


Printer-friendly PDF* format:

HTML <a> Anchor Tag

You are currently viewing this page in HTML 5 Style Sheet* format (* see Clicklets for more infomation). This document is also available in HTML 5 XML*HTML 5 non-XML*XHTML 1 Style Sheet*XHTML 1*XML* HTML 4* XHTML Mobile* WML Mobile* and printer-friendly PDF* formats. This is accomplished with Single Source Publishing, a content management system that uses templates in XSLT style sheets provided by XML Styles .com to transform the source content for various content delivery channels. There is also RDF* metadata that describes the content of this document.