Lakshya Education MCQs

Question: 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: Option D

Submit Answer & Explaination

Earn Reward Points by submitting Detailed Explaination for this Question

More Questions on This Topic :

Question 1. What does screen media type is used for?
  1.    For use with all devices
  2.    For use with handheld devices
  3.    For use with color computer screens
  4.    For use with television-type devices
Answer: Option C
Question 2. For Inline Style don’t need to reapply style information throughout the document and outside documents.State true or false.
  1.    True
  2.    False
Answer: Option B
Question 3. For document-Wide StyleCan easily control style document by document.State true or false.
  1.    True
  2.    False
Answer: Option A
Question 4. What will happen in this case?
h1 {color: "green";}
  1.    heading becomes green
  2.    heading becomes dark-green
  3.    error occors
  4.    nothings happen
Answer: Option D
Question 5. What will happen in this case?
h1 {color: red text-decoration: underline; font-style: italic;}
  1.    color: red, text-decoration: underline and font-style: italic all works
  2.    text-decoration: underline and font-style: italic works
  3.    color: red, text-decoration: underline works
  4.    only font-style: italic works
Answer: Option D
Question 6. ___________ has a grammar but unlike traditional (X)HTML it is not defined with a document type definition.
  1.    CSS 1
  2.    CSS 2
  3.    CSS 2.1
  4.    CSS 3
Answer: Option C

Check all Questions in this Topic : Click HERE