CSS Basic test questions

Source: Internet
Author: User

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

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.