HTMLLINKS
Anchor Tag and
Href Attribute
HTML uses the <a> (anchor) tag to create a link to
another document.
It can point to any res...
Anchor Tag and
Href Attribute
• <a> tag - used to create an anchor to link from
• href attribute - used to address the doc...
Anchor Tag and
Name Attribute
>>> used to create a named anchor
>>> allows you to jump directly to a
specific section with...
Anchor Tag and
Target Attribute
>>> The target attribute is used to
specify where the linked document will
be opened
To op...
Anchor Tag and
Target Attribute
e.g.
<a href="url" target="_blank">Content</a>
Mailto Link
>>> allows you to link to a mail message
e.g.
<a href="mailto:me@here.com">Mail Me!</a>
Upcoming SlideShare
Loading in …5
×

Html links

917
-1

Published on

Published in: Education, Technology
0 Comments
0 Likes
Statistics
Notes
  • Be the first to comment

  • Be the first to like this

No Downloads
Views
Total Views
917
On Slideshare
0
From Embeds
0
Number of Embeds
0
Actions
Shares
0
Downloads
4
Comments
0
Likes
0
Embeds 0
No embeds

No notes for slide

Html links

  1. 1. HTMLLINKS
  2. 2. Anchor Tag and Href Attribute HTML uses the <a> (anchor) tag to create a link to another document. It can point to any resource on the Web: an HTML page, an image, a sound file, a movie, etc. The syntax of creating an anchor: <a href="url">Text to be displayed</a>
  3. 3. Anchor Tag and Href Attribute • <a> tag - used to create an anchor to link from • href attribute - used to address the document to link to • element content - will be displayed as a hyperlink e.g. <a href="http://www.yahoo.com/">Visit Yahoo!</a>
  4. 4. Anchor Tag and Name Attribute >>> used to create a named anchor >>> allows you to jump directly to a specific section within the page syntax: <a href="url#label">content</a> <a name="label">content</a>
  5. 5. Anchor Tag and Target Attribute >>> The target attribute is used to specify where the linked document will be opened To open a linked document in a new window, use the attribute target="_blank"
  6. 6. Anchor Tag and Target Attribute e.g. <a href="url" target="_blank">Content</a>
  7. 7. Mailto Link >>> allows you to link to a mail message e.g. <a href="mailto:me@here.com">Mail Me!</a>
  1. A particular slide catching your eye?

    Clipping is a handy way to collect important slides you want to go back to later.

×