Thẻ ghi nhớ: CSS-Week3 | Quizlet

0.0(0)
Studied by 0 people
call kaiCall Kai
learnLearn
examPractice Test
spaced repetitionSpaced Repetition
heart puzzleMatch
flashcardsFlashcards
GameKnowt Play
Card Sorting

1/9

encourage image

There's no tags or description

Looks like no tags are added yet.

Last updated 1:45 PM on 5/21/26
Name
Mastery
Learn
Test
Matching
Spaced
Call with Kai

No analytics yet

Send a link to your students to track their progress

10 Terms

1
New cards

The default value for the position property is:

a, fixed

b, static

c, relative

d, absolute

b

2
New cards

What is wrong with this code?

div{

position: static;

left: 10px;

}

a, The code works, but the left property is not necessary since static elements don't allow offsets

b, There is nothing wrong with this code.

c, "static" is not a valid option for position

a

3
New cards

If you want your navigation bar to remain visible, even when the user scrolls downward, you should use which type of positioning?

a, relative

b, static

c, fixed

d, absolute

c

4
New cards

Which of the following is the proper syntax for a pseudo-class?

a, selector->pseudo-class {

property:value;

}

b, :pseudo-class {

property:value;

}

c, selector::pseudo-class {

property:value;

}

d, selector:pseudo-class {

property:value;

}

d

5
New cards

Which of the following rules styles the first paragraph in each div?

a, div:first-child p{

color: blue;

}

b, div p{

color: blue;

}

c, div >p{

color: blue;

}

d, div p:first-child {

color: blue;

}

d

6
New cards

Which CSS3 property allows you to change property values smoothly over a given duration?

a, change

b, hover

c, focus

d, transition

d

7
New cards

Sometimes elements overlap one another. Which property specifies the stacking order of the elements? (A high value means it is more likely to be place in front of another.) ONLY PROVIDE THE PROPERTY, NOT A VALUE.

z-index

8
New cards

Which rule will change the text color of p elements with the class "highlight" when hovered over?

a, p.highlight:hover{

color:green;

}

b, p:hover{

color:green;

}

c, p:hover{

color:green;

}

d, p:hover > highlight{

color:green;

}

a

9
New cards

What are the four principles of Accessibility?

PORE

USE

POUR

WEBAIM

c

10
New cards

What is wrong with this code?

div{

position: relative;

left: 10px;

}

The code works, but the left property is not necessary since relative elements don't allow offsets

There is nothing wrong with this code.

"relative" is not a valid option for position

b