Links Flashcards

1
Q

what is a link?

A

a connection between two or more webpages

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

what can we use links for?

A

links can be used to navigate between webpages/

navigate to different websites/ open a new browser window depending on what is specified

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

what element is used to create a link i HTML?

A

(a) (/a)

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

what attribute is required to make a link redirect the user to the specified location?

A

href = “location”

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

create a link that redirects the user to google

A

(a href=”https://www.goodle.com”) google (/a)

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

what is an absolute URL?

A

the full web address of a website which includes: the domain name

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

what is a relative URL?

A

part of the web address for a site- like using shorthand.

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

when do we use absolute URL’s in links?

A

when we want to link to an external website for example linking a personal portfolio to google

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

when do we use relative URL’s in links?

A

when we want to link to a web page within the same website. if all of the webpages are stored within the same folder then the href can be changed to the file name

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

give examples of relative link types

A

same folder/child folder/ grandchild folder

href = “reviews.html”/ href = “music/listings.html/ href = “movies/dvd/reviews.html”

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

what is an email link?

A

an email link is a link that once clicked opens the users default email client and has the recipients email auto filled to the specified email address. great for contact pages

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

how can we create an email link using html?

A

href = “mailto:emailaddress@gmail.com”

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

what is mailto value in a href attribute?

A

the mailto value is used at the start of a href value and is followed by the recipients email address. it is used as part of an email link

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

how do we use a link to open a new browser window?

A

we use the attribute target and give it a value of “_blank”

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

give an example of a link that opens a new browser window

A

(a href=”google.com”) open google in new window (/a)

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

how do we link to a specific part of the same webpage?

A

the specific parts of the webpage you want to link to need to be given an attribute of id and given a value.

we can use the value of the id entered in the href with an # to link to a specific part of that webpage

17
Q

give an example of linking to a specific part of a webpage

A

(div id = “main”) (/div)

a href=”#main”) click to go to the main section(/a