Friday, January 23, 2009

HTML Link

Content
HTML Code :
<a name="label">Content</a>
Output :
Content

Link in the same document
HTML Code :
<a href="#label">Jump to content</a>
Output :
Jump to content

Link from another document
HTML Code :
<a href="http://www.w3schools.com">Link from another document</a>
Output :
Link from another document

HTML Code :
<A HREF=" some .htm"> Click here to go there </A>
Output :
Click here to go there

HTML Code :
<A HREF="mailto: username @aol.com"> Click To Send E-mail </A>
Output :
Click To Send E-mail

HTML Code :
<A HREF="mailto: username @aol.com?subject=my&nbsp;subject&nbsp;Line"> Click To Send E-mail </A>
Output :
Click To Send E-mail

HTML Code :
<A HREF=" a .mid"> Click here for My Tune </A>
Output :
Click here for My Tune

HTML Code :
<A HREF=" your-file .zip"> Click here To Download My File </A>
Output :
Click here To Download My File

This text is a link to a page on this Web site.

For the home page, you have:

  • Home

  • HTML
  • HTMLCode :
    <a href="http://www.w3schools.com/" target="_blank">Visit W3Schools!</a>

    Output :
    Visit W3Schools!