HTML & CSS- part 6 Flashcards

1
Q

What’s the selector used to change the style when the user puts their mouse over an element?

A

:hover {
It’s usually used with links, but it works on other elements, too.

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

What’s the selector used to change the style when the user clicks an element?

A

:active {

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

What’s the selector used to change the style when the user has clicked on a link previously?

A

:visited {

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

What term controls underlining?

A

text-decoration:

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

What are the main options for text-decoration?

A

text-decoration: none
OR
text-decoration: underline

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

What is a “link anchor”?

A

It’s the text or image that you click to take you to the linked place. It’s the doorway or portal

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

What else can be a link anchor besides text?

A

You can use an image tag for a link anchor instead of text. Then when the user clicks on the image, they go to the link

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

What is an image map?

A

It’s an image where clicking different parts of it takes you to different links

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

What are the two main parts of coding an image map?

A

*the attribute in the <img> tag: usemap=”#nameOfMap”

*the <map> tag and its subparts

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

How do you code the subparts of the <map> tag?

A

<area shape=”circle”
coords=”337,300,44”
alt=”Coffee”
href=”coffee.htm”>

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

What’s the attribute that goes in the <map> tag?

A

The name of the map:
<map name=”nameOfMap”>

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

In a <map> tag, what are the choices for <area shape>?

A

“rect” for rectangle
“circle” for circle
“polygon” for polygon
“default” for entire region

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

How do the coordinates work in a <map> tag for a circle? How many are there? What do they mean?

A

<area shape=”circle” coords=”100,60,25”

*circle has a center at 100 pixels in from the left edge of the image and 60 pixels down from the top of the image

*circle has a radius of 25 pixels

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

How do the coordinates work in a <map> tag for a rectangle? How many are there? What do they mean?

A

<area shape=”rect” coords=”76,42,279,510”

*the first pair (76,42) are for the upper-left corner: 76 pixels in from the left edge of the image and 42 pixels down from the top of the image

*the second pair (279,510) are for the lower-right corner: 279 pixels from the left edge of the image and 510 pixels down from the top of the image

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

In a <map> tag, coordinates usually measure the distance from what?

A

The edge of the image (the first coordinate in a pair measure in from the left and the second measures down from the top)

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

What are the two kinds of lists (with their tags)

A

Ordered lists <ol>

Unordered lists <ul>

17
Q

What’s the tag for each line of a list?

A

<li> for list item

18
Q

Can lists be styled?

A

Yes, lists can be styled like any other element

19
Q

Does the default for lists add any space between list items?

A

No. He thinks they look better if they’re separated a bit.
li {margin-bottom: .75em;}

20
Q

What’s the default indenting for an unordered list?

A

The default is a bullet on the outside with all lines of text indented.

To make the default explicit, write:

ul {list-style-position: outside;}