Mod 6 pdf
Mod 6 pdf
Flashcards
Q: What are the three parts of CSS syntax?
A: Selector, property, and value.
Q: What does the position: fixed; property do?
A: It keeps elements in place in the viewport, regardless of page scrolling.
Q: What is the default position value for all HTML elements?
A: static.
Q: How do you add comments in CSS?
A: Use /* comment */.
5. Quiz Questions
Multiple Choice:
1. What is the default position of HTML elements?
a) relative
b) fixed
c) static
d) absolute
Answer: c) static
2. What does the # symbol in CSS represent?
a) Class selector
b) ID selector
c) Tag selector
d) Attribute selector
Answer: b) ID selector
3. Which property is used to move an element out of its normal flow?
a) float
b) margin
c) padding
d) color
Answer: a) float