Monday, 29 July 2013

How to Create a Link in HTML

A hyperlink (or link) is found in various forms in almost all Web pages.

Web designers use part of a word, phrase, image, or the image link as HTML command that contains this address also highlighted. Place your mouse over the link (text or image) gets a hand on the arrow.

Clicking it will take you to another location in the same document, the document or elsewhere on the Internet.





Basically there is a tag in HTML to create links. Once you've learned how to create links on the same page, links to other pages and pictures to make into links.

The HTML code for a link is so easy and looks like that:

<a href="url">Text</a>

- a  -  is called anchor. <a>  is a tag which defines a hyperlink;

- herf  - is called Hypertext Reference and  it is an attribute that identify the target of a link

- url - is the full address form of the link

- Text - is the text that you desire to show on the page.

- /a - ends the whole link command

If you desire to create a picture into a link, the code will be as follows:

<a href="url"><img src="picture.jpg"/></a>

No comments:

Post a Comment