Chapter 4 - Links (HTML) Flashcards

1
Q

How are links created?

A

Using the <a> element, which has an attribute called “href” </a>

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

URL

A

Uniform resource locator.

Made up of the domain name followed by the path to that page or image.

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

Relative URLs

A

Can be used when linking pages within your own
website.
Provide a shorthand way of telling hte browser where to find your files.

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

Same Folder

A

To link to a file in same folder, just use the file name. NOthing else is needed

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

Child Folder

A

Use the name of hte child folder, followed by a forward slash, then the file name.

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

Grandchild Folder

A

Use the . name of the child folder, followed by a forward slash, then name of the grandchild folder, followed by another forward slash, then the file name.
“movies/dvd/reviews.html”>Reviews

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

id attribute

A

You can use the id attribute to target elements within a page that can be linked to .

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