What does 1.CSS mean?
Your answer: computer Style Sheets
Correct answer: cascading Style Sheets
2. In the following HTML, which is the correct way to refer to an external style sheet?
Your answer: <link rel= "stylesheet" type= "Text/css" href= "Mystyle.css" >
3. In an HTML document, what is the correct location for referencing an external style sheet?
:
4. Which HTML tag is used to define an internal style sheet?
Your answer is:<style>
5. Which HTML attribute can be used to define inline styles?
Your answer: style
6. Which of the following CSS syntax is correct?
Your answer: body {color:black}
7. How do I insert a comment in a CSS file?
Your answer:/* This is a comment */
8. Which property can be used to change the background color?
Add a background color to your answer:h1> element?
Your answer: h1 {background-color: #FFFFFF}
10. How can I change the text color of an element?
Your answer: color:
11. Which CSS property controls the size of the text?
Your answer: font-size
12. In the following CSS, the correct syntax to make all <p> elements bold?
Your answer: p {font-weight:bold}
13. How do I display a hyperlink without an underscore?
Your answer: a {text-decoration:none}
14. How do I start the text in uppercase letters?
Your answer: text-transform:uppercase
Correct answer: text-transform:capitalize
15. How do I change the font of an element?
Your answer: font-family:
16. How do I make the text bold?
Your answer: font-weight:bold
17. How to display a border: Top 10 pixels, bottom border 5 pixels, left border 20 pixels, right border 1 pixels?
Your answer: border-width:10px 1px 5px 20px
18. How do I change the left margin of an element?
Your answer: margin-left:
19. Determine if the following statement is correct: to define the space between the element content and the border, use the Padding property and use a negative value?
Your answer: correct
Correct answer: Error
20. How do I generate a list with a square item?
Your answer: List-style-type:square
CSS test questions