CSS Questions & Answers – CSS Text

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

1. Which of the following CSS property is used to set the text formatting?
a) font
b) font-style
c) text-decoration
d) all of the mentioned
View Answer

Answer: c
Explanation: Self-explainatory.

2. Which of the following sets the color of any text decoration, such as underlines, overlines, and strike throughs?
a) text-font
b) text-format
c) text-color
d) text-decoration-color
View Answer

Answer: d
Explanation: Self-explainatory.

3. Which of the following sets what kind of line decorations are added to an element, such as underlines, overlines, etc?
a) text-style
b) text-decoration
c) text-line
d) text-decoration-line
View Answer

Answer: a
Explanation: Self-explainatory.
advertisement
advertisement

4. Which of the following text-decoration value specifies each line of text has a line above it?
a) line
b) underline
c) overline
d) blink
View Answer

Answer: c
Explanation: Self-explainatory.

5. Which of the following
a) text-overline
b) text-overline-decoration
c) text-overline-width
d) text-decoration-overline-width
View Answer

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

6. Which of the following CSS property determines how overflowed content that is not displayed is signaled to the users?
a) text-flow
b) text-underflow
c) text-overflow
d) none of the mentioned
View Answer

Answer: c
Explanation: Self-explainatory.

7. Which of the following sets the mode for the overline text decoration, determining whether the text decoration affects the space characters or not?
a) text-decoration
b) text-mode-overflow
c) text-mode
d) text-overline-mode
View Answer

Answer: b
Explanation: Self-explainatory.
advertisement

8. Which of the following specifies what parts of an element’s content are skipped over when applying any text decoration?
a) @font-text
b) font-style
c) text-skip
d) text-decoration-skip
View Answer

Answer: d
Explanation: Self-explainatory.

9. Which of the following is not a appropriate value for text-overline-width?
a) thin
b) medium
c) <number>
d) none of the mentioned
View Answer

Answer: d
Explanation: Self-explainatory.
advertisement

10. Which of the following property applies one or more drop shadows to the text?
a) text-shadow
b) text-effect
c) text-format
d) text-decoration-shadow
View Answer

Answer: a
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.