Thursday, October 18, 2012

HTML Link


Chapter 6

Extra Formatting Tags in HTML

Tag
Description
<b>
Defines bold text
<em>
Defines emphasized text
<i>
Defines a part of text in an alternate voice or mood
<small>
Defines smaller text
<strong>
Defines important text
<sub>
Defines subscripted text
<sup>
Defines superscripted text
<ins>
Defines inserted text
<del>
Defines deleted text

"Computer Code" Output Tags


Tag
 Description
<code>  
Defines computer code text
<kbd>
Defines keyboard text
<samp>
Defines sample computer code
<var>
Defines a variable
<pre>
Defines preformatted text

HTML Citations, Quotations, and Definition Tags


Tag
Description
<abbr>
Defines an abbreviation or acronym
<address>
Defines contact information for the author/owner of a document
<bdo>
Defines the text direction
<blockquote>
 Defines a section that is quoted from another source
<q>
Defines an inline (short) quotation
<cite>
Defines the title of a work
<dfn>
Defines a definition term


HTML Hyperlinks (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 Syntax

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

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

Example :6


<html>
<body>

<a href="http://atoz4tutorials.blogspot.in/" target="_blank">Visit atoz4tutorials.blogspot.in</a> 
<p>If you set the target attribute to "_blank", the link will open in a new browser window/tab.</p>
</body>


</html>

Output is:




No comments:

Post a Comment