Formatting Text in HTML MCQs
Formatting Text in HTML – MCQs with Answers & Explanations
Class: 7 |
Subject: Computer Science |
Section: HTML and Web Designing |
Topic: Formatting Text in HTML
Board: CBSE Board Examination
Board: CBSE Board Examination
These Multiple Choice Questions (MCQs) are designed strictly as per the NCERT syllabus, making them ideal for CBSE Class 7 Computer Science examination preparation.
1. Which HTML tag is used to make text bold?
Correct Answer: B. <b>
The <b> tag displays text in bold format. It is commonly used to highlight important words.
2. Which tag is used to italicize text?
Correct Answer: B. <i>
The <i> tag makes text italic. It is used for emphasis or stylistic formatting.
3. Underlined text is created using which tag?
Correct Answer: A. <u>
The <u> tag underlines text to give it special importance.
4. Which tag shows text as superscript?
Correct Answer: A. <sup>
Superscript displays text slightly above the normal line, e.g., x².
5. Subscript text is written using:
Correct Answer: A. <sub>
Subscript text appears below the normal line, e.g., H₂O.
6. Which tag is used to strike text?
Correct Answer: D. All of these
All these tags display strikethrough text showing deleted or removed content.7. Which tag highlights text?
Correct Answer: A. <mark>
The <mark> tag highlights text with a yellow background.8. Strong importance is shown using:
Correct Answer: B. <strong>
It semantically indicates important text and appears bold.9. Emphasized text uses:
Correct Answer: C. Both A & B
Both italicize text, but <em> adds semantic emphasis.10. Which tag makes text smaller?
Correct Answer: A. <small>
The <small> tag reduces text size.11. Deleted text is shown using:
Correct Answer: A. <del>
It shows removed text with a strike line.12. Inserted text uses:
Correct Answer: A. <ins>
Inserted text is usually underlined.13. Which tag preserves spaces?
Correct Answer: A. <pre>
Preformatted text keeps spaces and line breaks.14. Keyboard input is shown using:
Correct Answer: A. <kbd>
It represents keyboard commands.15. Code text uses:
Correct Answer: A. <code>
Displays programming code style text.16. Variable text uses:
Correct Answer: A. <var>
Represents variables in math/programming.17. Sample output uses:
Correct Answer: A. <samp>
Shows program output examples.18. Which tag defines abbreviation?
Correct Answer: A. <abbr>
Displays abbreviations with meaning.19. Full form text uses:
Correct Answer: C. Both
Both tags define abbreviations.20. HTML formatting tags are used to:
Correct Answer: B. Format text
They enhance text appearance and readability.