CSS-CSS Multiple/Choice Questions Sample Test,Sample questions

Question:
 CSS comments are placed within the ______.

1.//

2./* and */

3.<* and *>

4.<! And !>


Question:
 Internal styles are written within the _____ element.

1.<style>…</style>

2.<css>…</css>

3.<stylesheet>…</stylesheet>

4.Both A. and B.


Question:
 What CSS describes?

1.CSS describes how calculation perform on button click.

2.CSS describes how HTML elements are to be displayed on screen, paper, or in other media

3.Both A. and B.

4.None of the above


Question:
 Which property is used to define the font of the element's text?

1.font

2.font-family

3. font-style

4.All of the above


Question:
From the given options which is/are the valid way to represent a color?

1.A valid color name like "blue"

2.HEX code like "#0000ff"

3.RGB Value like "rgb(0,0,255)

4.All the above


Question:
In a CSS file, there is a CSS rule for paragraphs tags – what does p can be called?

1.Selector

2.Attribute

3.Property

4.Tag


Question:
Inline styles are written within the _____ attribute.

1. style

2.css

3.stylesheet

4.Both A. and B.


Question:
What are the valid values of font-style property?

1.italic, bold, bolder

2.normal, bold, italic

3.underline, bold, italic

4.inherit, italic, normal, oblique


Question:
What is a CSS selector?

1.A CSS selector is the CSS class name

2.A CSS selector is the set of properties that are going to be applied on HTML elements

3.A CSS selector is name of CSS file.

4.A CSS selector is the first part of a CSS Rule. It may an HTML element or pattern of elements.


Question:
What is CSS stands for?

1. Cascading Style Sheets

2.Cascade Style Sheet

3. Color Style Sheets

4.Color Style Sheet


Question:
What is the correct syntax for referring an external CSS?

1.<link rel="stylesheet" type="text/css" href="mystyle.css">

2.<stylesheet rel="stylesheet" type="text/css" href="mystyle.css">

3.<style rel="stylesheet" type="text/css" href="mystyle.css">

4.All the above


Question:
What is/are the correct value(s) of font-weight property?

1.bold, italic, underline

2.normal, bold, italic

3.normal, bold, bolder, lighter, initial, and inherit

4.None of the above


Question:
Which is the correct inline CSS for p tag to define paragraph's text and background colors?

1.<p css="color: red; background-color: yellow;">

2.<p cssstyle="color: red; background-color: yellow;">

3.<p inline="color: red; background-color: yellow;">

4.<p style="color: red; background-color: yellow;">


Question:
Which property is used to define the background color?

1.bgcolor

2.bg-color

3. background

4. background-color


Question:
Which property is used to define the text color?

1.text-color

2.color f

3.ont-color

4.Both A. and B.


Question:
Why font-weight property is used?

1.Sets how thick or thin characters in text should be displayed.

2.Sets the size of the font

3.Both A. and B.

4.None of the above


More MCQS

  1. CSS MCQ Questions & Answers Part 1
  2. CSS MCQ Questions & Answers Part 2
  3. CSS MCQ Questions & Answers Part 3
  4. CSS Mcq Questions
  5. CSS mcqs Part 1
  6. CSS mcqs Part 2
  7. CSS mcqs Part 3
  8. Css Mcq Set 1
  9. Css Mcq Set 2
  10. Css Mcq Set 3
  11. Css Mcq Set 4
  12. Css Mcq Set 5
  13. Css Mcq Set 6
  14. Css Mcq Set 7
  15. Css Mcq Set 8
  16. Css Mcq Set 9
  17. CSS Multiple-Choice Questions
  18. CSS MCQ
Search
Olete Team
Online Exam TestTop Tutorials are Core Java,Hibernate ,Spring,Sturts.The content on Online Exam Testwebsite is done by expert team not only with the help of books but along with the strong professional knowledge in all context like coding,designing, marketing,etc!