stud
bud
Sign up
Log in
Home
Library
Explore
SAT
More
Quiz 3 - Web Development Course Flashcards | StudBud
Explore
/
Quiz 3 - Web Development Course
Quiz 3 - Web Development Course
8 terms
·
StudBud Administration
·
3 plays
Imported from external platform
Flashcards
8 cards
F
Practice quiz
P
Host live
L
Questions
8
Answers
1
What is the result of using a:visited { color: black; }?
Hovering over links turns them black
All links become unclickable
Only unvisited links appear black
Visited links appear black
2
What is the correct way to group multiple selectors with the same style rule?
h1; h2 { color: red; }
h1 h2 { color: red; }
h1, h2 { color: red; }
h1 + h2 { color: red; }
3
How does text-align: center; affect inline elements inside a block-level container?
It centers them vertically
It justifies the text
It centers them horizontally
It aligns them to the left
4
What is the effect of width: 75%; applied to an element?
It sets a fixed width
It fills the entire screen
It increases font size by 75%
It uses 75% of the parent’s width
5
Which of the following selectors would target all <p> tags in a document?
#p
.p
*p
p
6
What is the default behavior of display: block;?
Elements are hidden
Elements are placed next to each other
Elements shrink to fit content
Elements take up as much width as available
7
Which property controls the spacing between the border and the content of an element?
padding
margin
spacing
gap
8
What is the purpose of font-family: sans-serif; in a CSS rule?
It removes the text background
It sets the text to a generic sans-serif font
It centers the text
It makes the text italic