Links are very important for a website as they allow to connect pages or point to a source of interest! That is why links are found in all Web pages. HTML link or a Hyperlink is a word or group of words, or image that a user can click to jump to another document.
When you move the cursor over a Hyperlink link in a Web page, the cursor arrow changes into a little hand.
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!
The "Link text" doesn't have to be text. It can be an image.
Example
<a href="http:// letsforum.com/"> lets forum - Community Discussion Forum Boards</a>
HTML Links - The target Attribute
The target attribute specifies how to open the link.
The example here opens the linked document in a new browser window or a new tab:
Example
<a href="http:// letsforum.com/" target="_blank"> lets forum - Community Discussion Forum Boards</a>
To add some stile to the link like changing text color, font, and font size we can use Attribute <font></font>
Example
<a href="http:// letsforum.com/" target="_blank"><font color="#000000" face="Verdana, Geneva, sans-serif" size="+1"> lets forum - Community Discussion Forum Boards</font></a>
color="#000000" sets text to black color
face="Verdana, Geneva, sans-serif" sets “Verdana, Geneva, sans-serif” font
size="+1" sets the font size
When you move the cursor over a Hyperlink link in a Web page, the cursor arrow changes into a little hand.
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!
The "Link text" doesn't have to be text. It can be an image.
Example
<a href="http:// letsforum.com/"> lets forum - Community Discussion Forum Boards</a>
HTML Links - The target Attribute
The target attribute specifies how to open the link.
The example here opens the linked document in a new browser window or a new tab:
Example
<a href="http:// letsforum.com/" target="_blank"> lets forum - Community Discussion Forum Boards</a>
To add some stile to the link like changing text color, font, and font size we can use Attribute <font></font>
Example
<a href="http:// letsforum.com/" target="_blank"><font color="#000000" face="Verdana, Geneva, sans-serif" size="+1"> lets forum - Community Discussion Forum Boards</font></a>
color="#000000" sets text to black color
face="Verdana, Geneva, sans-serif" sets “Verdana, Geneva, sans-serif” font
size="+1" sets the font size