creating hyperlinks with the tag

13
Creating hyperlinks with the <a> tag Skills: using the <a> tag IT concepts: tag, attribute This work is licensed under a Creative Commons Attribution- Noncommercial-Share Alike 3.0 License.

Upload: astrid

Post on 22-Feb-2016

47 views

Category:

Documents


1 download

DESCRIPTION

Creating hyperlinks with the tag. Skills : using the tag IT concepts : tag, attribute. This work is licensed under a Creative Commons Attribution-Noncommercial-Share Alike 3.0 License. . Where does this topic fit?. Internet concepts Applications Technology Implications - PowerPoint PPT Presentation

TRANSCRIPT

Page 1: Creating hyperlinks with the    tag

Creating hyperlinks with the <a> tag

Skills: using the <a> tag IT concepts: tag, attribute

This work is licensed under a Creative Commons Attribution-Noncommercial-Share Alike 3.0 License.

Page 2: Creating hyperlinks with the    tag

Where does this topic fit?

• Internet concepts– Applications– Technology– Implications

• Internet skills– Application development (Web)– Content creation– User skills

Page 3: Creating hyperlinks with the    tag

Hypertext

Hypertext:

Linear text: Table of contents

Chapter 1 1Chapter 2 10Chapter 3 20. . .

Page 4: Creating hyperlinks with the    tag

Which two things must we specify in a link?

Page 5: Creating hyperlinks with the    tag

Link text and target

Page 6: Creating hyperlinks with the    tag

<a href = “http://www.abc.com/prices”>ABC prices</a>

HTML for this example

The link textThe link destination

Page 7: Creating hyperlinks with the    tag

<a href = “link destination”> link text </a>

The general form

Page 8: Creating hyperlinks with the    tag

Link to a page on a different server

<a href = “http://www.abc.com/prices”>ABC prices</a>

Page 9: Creating hyperlinks with the    tag

<a href = “prices.htm”>ABC prices</a>

Link to a page on your own server

Page 10: Creating hyperlinks with the    tag

<a href = “products/prices.htm”>ABC prices</a>

Link to a page on your own server

Page 11: Creating hyperlinks with the    tag

Summary

Page 12: Creating hyperlinks with the    tag

What happens if you misspell the link destination?

What happens if you misspell the link text?

What happens if you leave http:// off of an external link?

What happens if you include http:// in a local link?

Is href a tag, value, attribute or neither?

Is <a> a tag, value, attribute or neither?

Self-study questions

Page 13: Creating hyperlinks with the    tag

W3schools tutorial on HTML links:http://www.w3schools.com/html/html_links.asp

Resource