Home » Web Development » 03 - Basic HTML Tags and Style Sheets
3

Links to Other Documents

How to link to other documents using thtml

Most HTML documents include links to other HTML documents. When you click on the link, you are taken to the corresponding web site. Let us include a link in the HTML document we just prepared:

<body>
Online Florist -
<a href="http://plantanswers.tamu.edu/flowers/flower.html">Flowers</a>
For All Occasions
</body>

The <a> or anchor tag is used to specify links in an html document. The 'href' or HTTP Reference attribute of this tag should contain the URL of the linked web site (plantanswers.tamu.edu/flowers/flower.html). The text that the user clicks (The word 'Flowers') to link to the other document should be specified between the <a> and </a> tags. As we go along, add all the new HTML we write to the florist.html file. Replace the line 'Online Florist - Flowers For All Occasions' with our new HTML code that contains a link.