CSS Questions & Answers – Styling Texts

This set of CSS Multiple Choice Questions & Answers (MCQs) focuses on “Styling Texts”.

1. Which of the following property sets the size of the font?
a) font-size
b) font-variant
c) font-style
d) font-weight
View Answer

Answer: a
Explanation: Self-explainatory.

2. Which of the following Property controls the display of small caps?
a) font-size
b) font-variant
c) font-style
d) font-weight
View Answer

Answer: b
Explanation: Self-explainatory.

3. Which of the following font-weight property make the text lighter in relation to its parent?
a) unfocus
b) normal
c) lighter
d) normal
View Answer

Answer: c
Explanation: Self-explainatory.
advertisement
advertisement

4. Which of the following property converts text to initial capitals, all uppercase, or all lowercase?
a) text-transform
b) text
c) text-decoration
d) text-uppercase
View Answer

Answer: a
Explanation: Self-explainatory.

5. Which of the following font-variant property render text using the same letter case as in the underlying code?
a) bold
b) small-caps
c) normal
d) none of the mentioned
View Answer

Answer: c
Explanation: Self-explainatory.
Note: Join free Sanfoundry classes at Telegram or Youtube

6. Which of the following property sets the alignment of the last line of a text block?
a) overflow-wrap
b) text-align-last
c) text-transform
d) text-indent
View Answer

Answer: b
Explanation: Self-explainatory.

7. Which of the following property controls how spaces and word wrapping are handled?
a) spacing
b) text-space
c) white-space
d) word-spacing
View Answer

Answer: c
Explanation: Self-explainatory.
advertisement

8. Which of the following property specifies what line decorations, if any, are added to the text?
a) text-decoration-line
b) text-line-decoration
c) text-decoration-style
d) text-style-decoration
View Answer

Answer: a
Explanation: Self-explainatory.

9. Which of the following property applies one or more shadows to text?
a) text-shadow
b) shadowed
c) shadow
d) word-shadow
View Answer

Answer: a
Explanation: Self-explainatory.
advertisement

10. Which of the following property allows long text, such as a URL, to be broken if it would otherwise over?
a) text-transform
b) word-wrap
c) text-overflow
d) text-indent
View Answer

Answer: b
Explanation: Self-explainatory.

Sanfoundry Global Education & Learning Series – CSS.

To practice all areas of CSS, here is complete set of 1000+ Multiple Choice Questions and Answers.

If you find a mistake in question / option / answer, kindly take a screenshot and email to [email protected]

advertisement
advertisement
Subscribe to our Newsletters (Subject-wise). Participate in the Sanfoundry Certification contest to get free Certificate of Merit. Join our social networks below and stay updated with latest contests, videos, internships and jobs!

Youtube | Telegram | LinkedIn | Instagram | Facebook | Twitter | Pinterest
Manish Bhojasia - Founder & CTO at Sanfoundry
Manish Bhojasia, a technology veteran with 20+ years @ Cisco & Wipro, is Founder and CTO at Sanfoundry. He lives in Bangalore, and focuses on development of Linux Kernel, SAN Technologies, Advanced C, Data Structures & Alogrithms. Stay connected with him at LinkedIn.

Subscribe to his free Masterclasses at Youtube & discussions at Telegram SanfoundryClasses.