- From: Karl Dubost <karl@w3.org>
- Date: Mon, 18 Aug 2003 15:14:51 -0400
- To: www-qa@w3.org
This is a draft Open for comments for future publications http://www.w3.org/2001/06tips/ ************************ Title: Use links in your document HTML 4.01, XHTML 1.0 and XHTML 1.1 have a mechanism which gives the possibility to Web authors to add external information related to the HTML document. These external resources can be styling information (CSS), help for navigation, information under another form (RSS), contact information, etc. The "link" element is used to add this information in the header of your document in the "head" element. Let see a practical example, with one page of an astronomy Web site. The page is about the planet Earth on a section which describes the solar system. <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"> <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en"> <head> <title>Earth - Astronomy Weblog</title> <link rel="Start" href="http://astro.example.org/solar-system" /> <link rel="Prev" href="/solar-system/venus/" /> <link rel="Next" href="/solar-system/mars/" /> <!-- Start gives the starting point of the section Prev gives the previous item, here the planet Mars Next gives the next item, here the planet Venus --> <link rel="Contents" href="/solarsystem/contents.html" /> <!-- Contents gives the possibility to access to an index of files --> <link rel="Help" href="/website-help.html" /> <!-- Help will gives you the possibility to give a page to help people with using your Website --> <link rel="alternate" type="application/rss+xml" title="RSS" href="/updates.rdf" /> <!-- It will give the possibility of RSS Readers to find the Web site updates feed --> <link rel="meta" type="application/rdf+xml" title="FOAF" href="http://astro.example.org/foaf.xrdf" /> <!-- It will give the possibility of FOAF Readers to find the data on the author --> <link href="mailto:webmaster@example.org" rev="made" /> <!-- A way to contact the author of the Web site --> <link rel="stylesheet" type="text/css" media="screen" href="/style/astro.css" /> <!-- Specify the CSS to display your Web site --> </head> <body> .... Here the rest of the page. Some user agents (browsers) or alternate applications benefit of these links and helps people in their daily use of website. Ref: http://www.w3.org/TR/html4.01/struct/links.html#edef-LINK -- Karl Dubost - http://www.w3.org/People/karl/ W3C Conformance Manager *** Be Strict To Be Cool ***
Received on Monday, 18 August 2003 17:52:49 UTC