The HTML tag <a> defines a hyperlink. A hyperlink (or simply ‘link’) is a word, a group of words, or an image that you can click on to jump to another page. You’ll know something is a link when you move the cursor over a link in a web page and the arrow will turn into a little hand.
The most important attribute of the <a> tag is the href attribute, which indicates the link’s destination.
By default, links in all browsers will appear as: an unvisited link is underlined and blue, and a visited link is underlined and purple.
<a href=“www.yalabbassi.com”>My Web Page</a>
Which will look like this: My Web Page.
You can also link an image using the same link tag. Instead of the text to click on, use the <img> tag, then close with </a>
<a href=“http://yalabbassi.com/index.php/component/content/article/23-portfolio/recipes/78-chocolate-lasagna?Itemid=0”><img src=“http://yalabbassi.com/images/chocolate-lasagna-4.jpg”></a>
The Target Attribute
The target attribute specifies where to open the link. The example below will open the link in a new browser window or tab.
<a href=“www.yalabbassi.com” target=“_blank”>My Web Page</a>
