HTML & CSS- part 6 Flashcards
What’s the selector used to change the style when the user puts their mouse over an element?
:hover {
It’s usually used with links, but it works on other elements, too.
What’s the selector used to change the style when the user clicks an element?
:active {
What’s the selector used to change the style when the user has clicked on a link previously?
:visited {
What term controls underlining?
text-decoration:
What are the main options for text-decoration?
text-decoration: none
OR
text-decoration: underline
What is a “link anchor”?
It’s the text or image that you click to take you to the linked place. It’s the doorway or portal
What else can be a link anchor besides text?
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
What is an image map?
It’s an image where clicking different parts of it takes you to different links
What are the two main parts of coding an image map?
*the attribute in the <img> tag: usemap=”#nameOfMap”
*the <map> tag and its subparts
How do you code the subparts of the <map> tag?
<area shape=”circle”
coords=”337,300,44”
alt=”Coffee”
href=”coffee.htm”>
What’s the attribute that goes in the <map> tag?
The name of the map:
<map name=”nameOfMap”>
In a <map> tag, what are the choices for <area shape>?
“rect” for rectangle
“circle” for circle
“polygon” for polygon
“default” for entire region
How do the coordinates work in a <map> tag for a circle? How many are there? What do they mean?
<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 do the coordinates work in a <map> tag for a rectangle? How many are there? What do they mean?
<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
In a <map> tag, coordinates usually measure the distance from what?
The edge of the image (the first coordinate in a pair measure in from the left and the second measures down from the top)