Css miscellaneous
- Which of the following is the correct way to applying style to a document?
-
View Hint View Answer Discuss in Forum
NA
Correct Option: C
Use an external style sheet, either by importing it or by linking to it
- What will be the output of below mentioned code snippet?
h1 {color: "blue";}
-
View Hint View Answer Discuss in Forum
NA
Correct Option: A
nothings happen
- What will be the output of following code snippet?
h1 {color: red text-decoration: underline; font-style: italic;}
-
View Hint View Answer Discuss in Forum
NA
Correct Option: A
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.
- ___________ has a grammar but unlike traditional (X)HTML it is not defined with a document type definition.
-
View Hint View Answer Discuss in Forum
NA
Correct Option: A
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.
- ___________ 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.
-
View Hint View Answer Discuss in Forum
NA
Correct Option: D
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.