You are not logged in.
Pages:: 1
#1 2015-09-16 06:47:35
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>
Example:
<a href="http://www.globalguideline.com/html/">Visit our HTML tutorial</a>
Local Links In HTML:
<a href="html_images.asp">HTML Images</a>
Example:
<style>
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}
</style>
Target Attribute:
<a href="http://www.globalguideline.com/" 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">
</a>
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.
Offline
2015-09-16 06:47:35
- Advertisement
- Ads By Google
Re: Links in HTML:
\n
Pages:: 1