CSS test questions

Source: Internet
Author: User

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

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.