HTML 5 Programming and Web development/Links and External Documents

From Wikibooks, open books for an open world
Jump to navigation Jump to search

HTML Documents are usually linked together. Links can be formed by clickable texts called Hyperlinks. A document can also be linked to external documents such as stylesheets using the <link> tag.

Hyperlinks[edit | edit source]

Hyperlinks are formed by using the <a> tag, The a tag has an attributed href, which is the URL of the link.

 <a href="en.Wikipedia. org"> Wikipedia, the free Encyclopedia</a>

The code above provides a link to the Wikipedia page. It will display a link as follows. Wikipedia, the free encyclopedia The text with the tag is displayed on screen and the href has the URL.