CSS : Properties & Value
1
/20
0
:
0
Submit
Total 20 question (100 marks)
1. What is the correct CSS syntax for making all the <p> elements bold?
2. How do you select an element with id 'heading'?
3. Which property is used to change the background color?
4. What is the property used to set the class’s text color?
5. Which property is used to change the font of an element?
6. How do you add a background color for all <h1> elements?
7. How do you select all p elements inside a div element?
8. How do you display hyperlinks without an underline?
9. Which CSS property controls the text size?
10. How do you select elements with class name 'test'?
11. Some HTML elements have multiple states, like the link, how do you give it a particular style when
12. How do you make the text bold?
13. How do you make each word in a text start with a capital letter?
14. If you wanted to put an HTML element at a certain position on the page regardless of the
15. Which of the following defines a measurement in inches?
16. How do you group selectors?
17. How to set background image for a div tag?
18. Which of the following value of cursor shows it as an arrow?
19. Which CSS property is used to change the text color of an element?
20. How would you style table rows to have alternating background colors?
1.
What is the correct CSS syntax for making all the
<p>
elements bold?
A
p {font-weight:bold;}
B
<p style="text-size:bold;">
C
<p style="font-size:bold;">
D
p {text-size:bold;}
Next
Previous
You are need login before take this quiz.
Login