CSS Multiple Choice Questions & Answers on Applying Style to a Document for Freshers

1. Which of the following is the correct way to applying style to a document?

a) Use an external style sheet, either by importing it or by linking to it
b) Directly embed a document-wide style in the head element of the document
c) Set an inline style rule using the style attribute directly on an element
d) All of the mentioned
Answer: d
2. <style h1 {color: green;}> 
<h1>Hello</h1>
What will happen in this case?

a) h1 heading becomes green
b) error
c) h1 heading disappears
d) nothing happens
Answer: c
3. <p style="color: red">text</p>
.What will happen in this case?

a) make that specific paragraph red.
b) error
c) nothing happens
d) none of the mentioned
Answer: a
4. The _______property is used to set the color of the text.

a) pallet
b) colour
c) color
d) text-decoration
Answer: c
5. Which of the following is the correct way to apply Styles?

a) inside an HTML element
b) inside the section of an HTML page
c) in an external CSS file
d) all of the mentioned
Answer: d
6. Which of the following CSS list properties is/are correct?

a) Set different list item markers for ordered lists
b) Set different list item markers for unordered lists
c) Set an image as the list item marker
d) All of the mentioned
Answer: d
7. A ___________ is used to define a special state of an element.

a) pseudo-tag
b) pseudo-element
c) pseudo-id
d) pseudo-class
Answer: d
8. The __________ property specifies the type of positioning method used for an element.

a) align
b) float
c) position
d) padding
Answer: c
9. <body style="background-color: lightcyan">
.Which style is this?

a) Inline Styles
b) External Style Sheet
c) External Style Sheettyle Sheet
d) None of the mentioned
Answer: a
10. <link rel="stylesheet" type="text/css" href="mystyle.css">
.Is this correct way to apply css.State true or false.

a) True
b) False
Answer: a

Related

Multiple Choice Questions 6883361196635112498

Post a Comment

emo-but-icon

item