Logo 1 Logo 2

HTML Code Examples Index
1. HTML Page Layout Basics 2. Creating HTML Hyperlinks 3. Creating HTML Tables
4. Font/Text Types & Colors 5. Working With HTML Images 6. Creating HTML Lists
7. Working With Backgrounds 8. Importing JavaScript Files 9. Importing CSS Files

What Is A Hyperlink

When mousing over a word, a sentence, or even an image and find that it is clickable, that is a Hyperlink.

A Hyperlink can be applied to almost anything and that makes it clickable. When you click it, it will take you to the designed destination of the hyperlink.

How To Create A Hyperlink

I will show you how to create a Hyperlink for a word, a sentence and even an image.

You can copy the lines below directly into your coding, check it out:

a) To create a Hyperlink for a word, you can use the following code:

	<a href="Your-Destination-Address.html">Any-Word-Here</a> 
    

b) To create a Hyperlink for a sentence, you can use the following code:

	<a href="Your-Destination-Address.html">Any Sentence Here</a>
    

c) To create a Hyperlink for an image, you can use the following code:

	<a href="Your-Destination-Address.html"></a>
    

Here Is A Working Example:

Using (a)

	<a href="index.php">Any-Word-Here</a>
    

Will Give You The Result: Home


Using (b)

	<a href="html-code-examples.php">HTML Code Examples</a>
    

Will Give You The Result: HTML Code Examples


Using (c)

	<a href="creating-html-hyperlinks.php"></a>
    

Will Give You The Result: Avatar

Did You Like This Page? Please Share :D


Sayed
Hi, my name is Sayed, currently studying Computer Science at York University Toronto. I love creating websites and programming.
You can find me on Google+

Connect With Me:

This Site Is Hosted On:

Subscribe to my NewsLetter!
* indicates required