The HTML <a> tag defines a hyperlink.
A hyperlink (or link) is a word, group of words, or image that you can click on to jump to another document. When you move the cursor over a link in a Web page, the arrow will turn into a little hand. The most important attribute of the <a> element is the href attribute, which indicates the link’s destination.
By default, links will appear as follows in all browsers:
In this example you get like this 2 links.
If you are click in Link 1 that is opening in another page.
If you are clicl Link 2 that is opening in same page.
A hyperlink (or link) is a word, group of words, or image that you can click on to jump to another document. When you move the cursor over a link in a Web page, the arrow will turn into a little hand. The most important attribute of the <a> element is the href attribute, which indicates the link’s destination.
By default, links will appear as follows in all browsers:
- An unvisited link is underlined and blue
- A visited link is underlined and purple
- An active link is underlined and red
- Open a text editor and type the following line in to the text editor.
- Save file.
- Open that file in a web browser.
- You get like this out put.
If you are click in Link 1 that is opening in another page.
If you are clicl Link 2 that is opening in same page.
No comments:
Post a Comment