Home Tutorials Exercises About Us
�Things change. And friends leave. Life doesn't stop for anybody.� (c) Stephen Chbosky, The Perks of Being a Wallflower


�When someone loves you, the way they say your name is different. You know that your name is safe in their mouth.� (c) Jess C. Scott, The Intern


�The fear of death follows from the fear of life. A man who lives fully is prepared to die at any time.� (c) Mark Twain


�We are what we pretend to be, so we must be careful about what we pretend to be.� (c) Kurt Vonnegut, Mother Night

Links

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:

  • An unvisited link is underlined and blue
  • A visited link is underlined and purple
  • An active link is underlined and red

HTML Link

The HTML code for a link is simple. It looks like this:

<a href="url">Link text</a>

The href attribute specifies the destination of a link.

Example

<a href="http://www.palajhenghyper.tumblr.com./">Visit my Blog</a>

which will display like this: Visit my Blog

Clicking on this hyperlink will send the user to W3Schools' homepage.

Tip: The "Link text" doesn't have to be text. It can be an image or any other HTML element.


Related Pages


Copyright � Juine Arvie Lavarias. All Rights Reserved. 2014