What does 1.CSS mean?
Correct answer: cascading Style Sheets
2. In the following HTML, which is the correct way to refer to an external style sheet?
Correct 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?
Correct answer:
4. Which HTML tag is used to define an internal style sheet?
Correct answer:<style>
5. Which HTML attribute can be used to define inline styles?
Correct answer: Style
6. Which of the following CSS syntax is correct?
Correct answer: body {color:black}
7. How do I insert a comment in a CSS file?
Correct answer:/* This is a comment */
8. Which property can be used to change the background color?
Correct answer:h1> element add background color?
Correct answer: H1 {background-color: #FFFFFF}
10. How can I change the text color of an element?
Correct answer: color:
11. Which CSS property controls the size of the text?
Correct answer: font-size
12. In the following CSS, the correct syntax to make all <p> elements bold?
Correct answer: p {font-weight:bold}
13. How do I display a hyperlink without an underscore?
Correct answer: a {text-decoration:none}
14. How do I start the text in uppercase letters?
Correct answer: text-transform:capitalize
15. How do I change the font of an element?
Correct answer: font-family:
16. How do I make the text bold?
Correct 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?
Correct answer: border-width:10px 1px 5px 20px
18. How do I change the left margin of an element?
Correct 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?
Correct answer: Error
20. How do I generate a list with a square item?
Correct answer: List-style-type:square
CSS Basic test questions