Chapter 6 - Adding Links Flashcards

1
Q

<a>…..</a>

A

the only element that makes linking possible. to make a selection of a text a link, simply wrap it in opening & closing <a>…</a> tags and use the href attribute to provide the URL of the target page. The content of the anchor element becomes the hypertext link…<a>……. </a>

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
2
Q

Discuss the “href” attribute

A

provides the address of the page or resource to the browser. The URL must always appear in quotation marks

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
3
Q

What are the 2 ways to specify the URL

A
  1. Absolute URL’s: provide the full URL for the document, including the protocol (http://), the domain name, and the pathname i.e. “http://www.oreilly.com/”
  2. Relative URL’s: describe the pathname to a file relative to the current document. Relative URL’s can be used when you’re linking to another document on your own site.
How well did you know this?
1
Not at all
2
3
4
5
Perfectly