XHTML 1.1 Tutorial

Link

Tag Purpose
<a> Defines an anchor
The <a> tag indicates an anchor element. Normally It can be used in two ways:
  1. by using 'href' attribute, it make a link from your page to another document
  2. by using 'name' or 'id' attribute, it make a link to your document on the same page
Example: <a href='http://www.sis.pitt.edu/~icucard> - This is a link to the tutorial web page!</a> make a link the another web page.
<link> Defines a resource reference
Mostly placed in the <head> section, the <link> indicates the relationship between two linked documents. The link element is regularly an empty element, it contains only attributes.
Note that this element must be properly closed.

For example, <link rel="stylesheet" type="text/css" href="style.css" /> is defined the link to external stylesheet.


Previous Next

This tutorial is final project for INFSCI 2000, Fall 2004
Copyright 2004 School of Information Science, University of Pittsburgh