CSS Multiple Choice Questions & Answers on The Specification of CSS for Freshers

1. ___________ describes CSS properties to manipulate the position of “ruby”, which are small annotations on top of or next to words, especially common in Chinese and Japanese.

a) align
b) ruby
c) lang
d) text-align
Answer: b

Explanation: Ruby describes CSS properties to manipulate the position of “ruby”, which are small annotations on top of or next to words, especially common in Chinese and Japanese. They are often used to give the pronunciation or meaning of difficult ideograms.
2. ___________ has a grammar but unlike traditional (X)HTML it is not defined with a document type definition.

a) CSS 1
b) CSS 2
c) CSS 2.1
d) CSS 3
Answer: c

Explanation: CSS 2.1 has a grammar (www.w3.org/TR/CSS21/grammar.html) but unlike traditional (X)HTML it is not defined with a document type definition. Instead the CSS specification is a combination of prose and a grammar that could be used to build a simple parser.
3. h1 {color: red text-decoration: underline; font-style: italic;}
.What will happen in this case?
a) color: red, text-decoration: underline and font-style: italic all works
b) text-decoration: underline and font-style: italic works
c) color: red, text-decoration: underline  works
d) only font-style: italic works

Answer: d

Explanation: In this case, we should see the browser continue to parse the value of color as “red textdecoration:
underline” before it sees a closing semicolon. The font-style property that follows would then be used. Because the color property has an illegal value, it should be
ignored.
4. h1 {color: "green";}
.What will happen in this case?

a) heading becomes green
b) heading becomes dark-green
c) error occors
d) nothings happen
Answer: d
5. 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
6. With, which tag you write the style rules directly within the document found
within the head of the document.

a) <script>
b)  
c) <style>
d) 

Answer: c
 
 
7. What does screen media type is used for?

a) For use with all devices
b) For use with handheld devices
c) For use with color computer screens
d) For use with television-type devices
Answer: c
8. For Inline Style don’t need to reapply style information throughout the document and outside documents.State true or false.

a) True
b) False
Answer: b
9. For document-Wide StyleCan easily control style document by document.State true or false.

a) True
b) False
Answer: a
10. For External Style Sheets in some cases when @import is used, the browser may cause a rendering “flash” under slow loading conditions.State true or false.

a) True
b) False
Answer: a

Related

Multiple Choice Questions 6032028355483105997

Post a Comment

emo-but-icon
:noprob:
:smile:
:shy:
:trope:
:sneered:
:happy:
:escort:
:rapt:
:love:
:heart:
:angry:
:hate:
:sad:
:sigh:
:disappointed:
:cry:
:fear:
:surprise:
:unbelieve:
:shit:
:like:
:dislike:
:clap:
:cuff:
:fist:
:ok:
:file:
:link:
:place:
:contact:

item