You are not logged in.

#1 2015-09-16 06:47:35

User RankUser RankUser RankUser RankUser RankUser Rank
From: Chichawatni,Pakistan
Registered: 2014-10-03
Posts: 8,129

Links in HTML:

Links in HTML:

HTML links are called hyperlinks.
Hyperlink is a text or an image you can click on, and jump to another document.

HTML Link:

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


<a href="">Visit our HTML tutorial</a>

Local Links In HTML:

<a href="html_images.asp">HTML Images</a>


a:link    {color:green; background-color:transparent; text-decoration:none}
a:visited {color:pink; background-color:transparent; text-decoration:none}
a:hover   {color:red; background-color:transparent; text-decoration:underline}
a:active  {color:yellow; background-color:transparent; text-decoration:underline}

Target Attribute:

<a href="" target="_blank">Visit globalguideline!</a>

Value Target:

_blank : Opens the linked document in a new window or tab
_self : Opens the linked document in the same frame as it was clicked (this is default)
_parent : Opens the linked document in the parent frame
_top : Opens the linked document in the full body of the window
framename : Opens the linked document in a named frame

Image As Link In HTML:

<a href="default.asp">
  <img src="name.gif" alt="HTML Free Tutorial" style="width:42px;height:42px;border:0">

Tags Explanation:

<a> element to define a link
href attribute to define the link address
target attribute to define where to open the linked document
<img> element (inside <a>) to use an image as a link
id attribute (id="value") to define bookmarks in a page
href attribute (href="#value") to link to the bookmark

You cannot discover the new oceans unless you have the courage to lose the sight of the shore.

2015-09-16 06:47:35

Ads By Google

Re: Links in HTML:

Board footer