Successfully reported this slideshow.
We use your LinkedIn profile and activity data to personalize ads and to show you more relevant ads. You can change your ad preferences anytime.

Html links


Published on

Published in: Education, Technology
  • Be the first to comment

  • Be the first to like this

Html links

  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="">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="">Mail Me!</a>