Hyperlinks/CSS Test Flashcards

1
Q

What does CSS stand for?

A

Cascading Style Sheets

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

What is the purpose of hyperlinks in web design?

A

To allow users to navigate between different web pages

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

True or False: Hyperlinks can only be text-based.

A

False

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

What property in CSS is used to change the color of a hyperlink?

A

color

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

Fill in the blank: Hyperlinks are created using the <________> tag in HTML.

A

a

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

What is the default color of an unvisited hyperlink in CSS?

A

blue

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

What property in CSS is used to remove the underline from a hyperlink?

A

text-decoration

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

What does the CSS property ‘text-decoration: none;’ do to a hyperlink?

A

Removes the underline

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

What is the purpose of the ‘hover’ pseudo-class in CSS for hyperlinks?

A

To change the style of a hyperlink when the mouse hovers over it

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

Fill in the blank: The CSS property ‘text-decoration: ______;’ can be used to underline a hyperlink.

A

underline

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

What is the purpose of the ‘visited’ pseudo-class in CSS for hyperlinks?

A

To style hyperlinks that have been visited by the user

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

What CSS property is used to change the style of a hyperlink when it is being clicked?

A

active

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

True or False: Hyperlinks can only link to other web pages.

A

False

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

What attribute in HTML is used to specify the URL of a hyperlink?

A

href

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

What is the purpose of the ‘target’ attribute in a hyperlink?

A

To specify where the linked document should be opened

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

What value of the ‘target’ attribute opens the linked document in a new window?

A

_blank

17
Q

What is the purpose of the ‘rel’ attribute in a hyperlink?

A

To specify the relationship between the current document and the linked document

18
Q

What does the ‘noopener’ value of the ‘rel’ attribute prevent?

A

Prevents the linked document from being able to access the opening document

19
Q

What does the ‘noreferrer’ value of the ‘rel’ attribute prevent?

A

Prevents the referrer information from being sent to the linked document

20
Q

What does the ‘external’ value of the ‘rel’ attribute indicate?

A

Indicates that the linked document is external to the current document

21
Q

What does the ‘nofollow’ value of the ‘rel’ attribute indicate?

A

Indicates that search engines should not follow the linked document

22
Q

What is the purpose of the ‘title’ attribute in a hyperlink?

A

To provide additional information about the linked document

23
Q

What is the purpose of the ‘id’ attribute in HTML?

A

To provide a unique identifier for an element

24
Q

What is the purpose of the ‘class’ attribute in HTML?

A

To specify one or more class names for an element