MCQs
Of Class 3:
Text
Formatting in HTML
1. Which HTML tag is used
to make text bold?
o a) <bold>
o b) <strong>
o c) <b>
o d) <em>
Answer: b) <strong>
2. Which tag should you use
to italicize text in HTML?
o a) <italic>
o b) <i>
o c) <em>
o d) <strong>
Answer: c) <em>
3. How can you underline
text in HTML?
o a) <u>
o b) <underline>
o c) <strong>
o d) <em>
Answer: a) <u>
4. Which HTML tag is used
to create a block-level quotation?
o a) <quote>
o b) <blockquote>
o c) <q>
o d) <citation>
Answer: b) <blockquote>
5. What does the <s>
tag do in HTML?
o a) It creates a
strikethrough effect on the text.
o b) It makes text bold.
o c) It italicizes text.
o d) It underlines text.
Answer: a) It creates a strikethrough effect on the text.
6. To display text as a
subscript, which tag should you use?
o a) <sub>
o b) <sup>
o c) <script>
o d) <subscript>
Answer: a) <sub>
7. Which tag is used for
inline quotations?
o a) <q>
o b) <quote>
o c) <blockq>
o d) <cite>
Answer: a) <q>
8. How do you create a
superscript text in HTML?
o a) <sup>
o b) <sub>
o c) <script>
o d) <superscript>
Answer: a) <sup>
9. Which attribute is used
to specify a citation for a blockquote?
o a) cite
o b) source
o c) reference
o d) author
Answer: a) cite
10.
What does the <cite> tag represent in HTML?
o a) It denotes a citation
or reference to a source.
o b) It emphasizes text.
o c) It creates a
hyperlink.
o d) It formats text as a
block-level element.
Answer: a) It denotes a citation or reference to a source.
11.
Which HTML tag is used for text that represents a variable or
programming code?
o a) <code>
o b) <pre>
o c) <var>
o d) <samp>
Answer: a) <code>
12.
To display a note or side comment in a document, which tag is
appropriate?
o a) <note>
o b) <aside>
o c) <comment>
o d) <tip>
Answer: b) <aside>
13.
Which tag should be used to emphasize text with a stronger
importance?
o a) <b>
o b) <strong>
o c) <i>
o d) <em>
Answer: b) <strong>
14.
What is the purpose of the <pre> tag in HTML?
o a) It formats text to
display exactly as written, preserving whitespace and line breaks.
o b) It italicizes text.
o c) It creates a
paragraph.
o d) It makes text bold.
Answer: a) It formats text to display exactly as written, preserving
whitespace and line breaks.
15.
Which tag is used for text that should be displayed in a specific
typeface, such as a monospace font?
o a) <pre>
o b) <tt>
o c) <code>
o d) <font>
Answer: b) <tt>
16.
How do you create a line break in an HTML document?
o a) <break>
o b) <br>
o c) <line>
o d) <newline>
Answer: b) <br>
17.
Which HTML tag is used to denote a short quotation?
o a) <blockquote>
o b) <quote>
o c) <q>
o d) <citation>
Answer: c) <q>
18.
In HTML, which tag is used to format text as a citation or
reference to a title of a work?
o a) <title>
o b) <reference>
o c) <cite>
o d) <source>
Answer: c) <cite>
19.
Which HTML tag is used to define a term in a definition list?
o a) <dt>
o b) <dd>
o c) <list>
o d) <term>
Answer: a) <dt>
20.
Which tag is used for displaying preformatted text that retains
spaces and line breaks?
o a) <code>
o b) <pre>
o c) <tt>
o d) <samp>
Answer: b) <pre>
21.
Which HTML tag is used to apply a strikethrough effect to text?
o a) <del>
o b) <s>
o c) <strike>
o d) <u>
Answer: b) <s>
22.
To format text that represents computer code or programming
syntax, which tag is appropriate?
o a) <code>
o b) <pre>
o c) <samp>
o d) <var>
Answer: a) <code>
23.
Which tag is used to display text as a variable in HTML?
o a) <var>
o b) <code>
o c) <samp>
o d) <pre>
Answer: a) <var>
24.
What is the function of the <small> tag in HTML?
o a) To make text smaller
than the surrounding text.
o b) To emphasize text.
o c) To create a
subheading.
o d) To display text in a
small font size with a warning effect.
Answer: a) To make text smaller than the surrounding text.
25.
Which tag is used for emphasizing text with a lesser degree than
<strong>?
o a) <b>
o b) <i>
o c) <em>
o d) <mark>
Answer: c) <em>
26.
To display a block of text that is meant to be displayed exactly
as typed, which tag should be used?
o a) <code>
o b) <pre>
o c) <p>
o d) <blockquote>
Answer: b) <pre>
27.
Which HTML tag is used to create a highlight effect on text?
o a) <highlight>
o b) <mark>
o c) <b>
o d) <em>
Answer: b) <mark>
28.
How can you combine text formatting tags to format text as both
bold and italicized?
o a)
<b><i>text</i></b>
o b)
<strong><em>text</em></strong>
o c)
<i><strong>text</strong></i>
o d)
<bold><italic>text</italic></bold>
Answer: b) <strong><em>text</em></strong>
29.
Which tag is used to define the text content that should be
considered as user input or sample output?
o a) <code>
o b) <samp>
o c) <var>
o d) <pre>
Answer: b) <samp>
30.
To display a quote from an external source in a block format with
indentation, which tag should be used?
o a) <q>
o b) <cite>
o c) <blockquote>
o d) <s>
Answer: c) <blockquote>
31.
Which tag is used to define a citation for a quote or a work in
HTML?
o a) <reference>
o b) <citation>
o c) <cite>
o d) <source>
Answer: c) <cite>
32.
How do you create a list of terms and their definitions in HTML?
o a) Using <ul>,
<li>, and <dl>
o b) Using <ol>,
<dt>, and <dd>
o c) Using <dl>,
<dt>, and <dd>
o d) Using <ul>,
<li>, and <dl>
Answer: c) <dl>, <dt>, and <dd>
33.
Which tag is used to highlight a piece of text for reference or
emphasis?
o a) <highlight>
o b) <mark>
o c) <strong>
o d) <em>
Answer: b) <mark>
34.
To create a text area for input that displays with a preformatted
format, which tag is used?
o a) <input>
o b) <textarea>
o c) <pre>
o d) <code>
Answer: b) <textarea>
35.
Which tag is used to show a line of text with a single line break
after it?
o a) <line>
o b) <break>
o c) <br>
o d) <hr>
Answer: c) <br>
36.
Which HTML tag should be used to define a text block that is
considered a part of a sample output?
o a) <code>
o b) <samp>
o c) <pre>
o d) <var>
Answer: b) <samp>
37.
What does the <address> tag represent in HTML?
o a) The physical address
of a location.
o b) Contact information
for the author of the document.
o c) The URL for a web
resource.
o d) The location of a
file in a web server.
Answer: b) Contact information for the author of the document.
38.
Which tag is used to include a piece of code or a technical term
in a document?
o a) <term>
o b) <code>
o c) <pre>
o d) <example>
Answer: b) <code>
39.
What does the <strong> tag do in HTML?
o a) It creates italicized
text.
o b) It emphasizes text
with a strong importance.
o c) It creates underlined
text.
o d) It formats text as a
hyperlink.
Answer: b) It emphasizes text with a strong importance.
40.
Which tag is used to create an inline code element within a
paragraph?
o a) <pre>
o b) <code>
o c) <samp>
o d) <var>
Answer: b) <code>
41.
Which tag should be used to emphasize a piece of text with a lower
degree of importance than <strong>?
o a) <bold>
o b) <em>
o c) <i>
o d) <u>
Answer: b) <em>
42.
To display a line that separates content in an HTML document,
which tag is used?
o a) <line>
o b) <divider>
o c) <hr>
o d) <separator>
Answer: c) <hr>
43.
Which HTML tag is used to define text that has been deleted from a
document?
o a) <s>
o b) <del>
o c) <strike>
o d) <removed>
Answer: b) <del>
44.
How do you denote a section of text as a variable in HTML?
o a) <var>
o b) <code>
o c) <samp>
o d) <pre>
Answer: a) <var>
45.
Which tag would you use to create an emphasized block of text that
stands out from the surrounding content?
o a) <strong>
o b) <em>
o c) <blockquote>
o d) <mark>
Answer: c) <blockquote>
46.
What is the purpose of the <del> tag in HTML?
o a) It indicates deleted
text.
o b) It highlights text.
o c) It creates a line
break.
o d) It adds emphasis to
text.
Answer: a) It indicates deleted text.
47.
To show a block of text with preserved whitespace and line breaks,
which tag should be used?
o a) <pre>
o b) <code>
o c) <samp>
o d) <var>
Answer: a) <pre>
48.
Which tag is used to mark text as a sample output from a program?
o a) <code>
o b) <samp>
o c) <pre>
o d) <output>
Answer: b) <samp>
49.
Which HTML tag is used to display text with an underline effect?
o a) <underline>
o b) <u>
o c) <em>
o d) <strong>
Answer: b) <u>
50.
To create a section of text that should be highlighted as a note
or highlight, which tag is used?
o a) <highlight>
o b) <mark>
o c) <em>
o d) <strong>
Answer: b) <mark>
51.
What is the function of the <kbd> tag in HTML?
o a) It denotes text to be
displayed as keyboard input.
o b) It creates a
block-level element.
o c) It italicizes text.
o d) It creates a block of
code.
Answer: a) It denotes text to be displayed as keyboard input.
52.
Which tag is used for text that represents the result of user
input or user interface interaction?
o a) <var>
o b) <samp>
o c) <code>
o d) <input>
Answer: b) <samp>
53.
What does the <i> tag do in HTML?
o a) It makes the text
bold.
o b) It italicizes the
text.
o c) It underlines the
text.
o d) It creates a
strikethrough effect.
Answer: b) It italicizes the text.
54.
Which tag is used to represent sample output or a response from a
computer program?
o a) <output>
o b) <samp>
o c) <code>
o d) <pre>
Answer: b) <samp>
55.
To create a horizontal rule or line that separates sections in a
web page, which HTML tag should be used?
o a) <hr>
o b) <line>
o c) <divider>
o d) <separator>
Answer: a) <hr>
56.
Which HTML tag is used to represent text that has been inserted
into a document?
o a) <ins>
o b) <added>
o c) <new>
o d) <insert>
Answer: a) <ins>
57.
Which tag is used to represent the text that should be displayed
as a programming or scripting language?
o a) <code>
o b) <script>
o c) <program>
o d) <pre>
Answer: a) <code>
58.
How can you format text to appear as if it is a sample of user
input?
o a) <input>
o b) <samp>
o c) <code>
o d) <var>
Answer: b) <samp>
59.
Which tag is used to create a line of text that represents a
section or header within a document?
o a) <hr>
o b) <header>
o c) <line>
o d) <section>
Answer: b) <header>
60.
What does the <mark> tag do in HTML?
o a) It highlights text.
o b) It italicizes text.
o c) It creates a
hyperlink.
o d) It makes text bold.
Answer: a) It highlights text.
61.
Which HTML tag should be used for text that indicates a computer
program output?
o a) <output>
o b) <samp>
o c) <code>
o d) <pre>
Answer: b) <samp>
62.
To create a block-level element that can contain other HTML
elements and preserve formatting, which tag is appropriate?
o a) <div>
o b) <span>
o c) <pre>
o d) <section>
Answer: c) <pre>
63.
Which tag would you use to create a text block that provides an
example of code or programming text?
o a) <code>
o b) <example>
o c) <samp>
o d) <pre>
Answer: d) <pre>
64.
How can you display text with a variable-like appearance in HTML?
o a) <code>
o b) <samp>
o c) <var>
o d) <pre>
Answer: c) <var>
65.
Which HTML tag is used to mark the start of a definition list?
o a) <dl>
o b) <dt>
o c) <dd>
o d) <list>
Answer: a) <dl>
66.
What does the <b> tag do in HTML?
o a) It makes text bold
without implying any additional importance.
o b) It italicizes the
text.
o c) It underlines the
text.
o d) It creates a
block-level element.
Answer: a) It makes text bold without implying any additional
importance.
67.
Which tag is used to emphasize text that is not as important as
<strong>?
o a) <b>
o b) <i>
o c) <u>
o d) <mark>
Answer: b) <i>
68.
To display a text with the appearance of a keyboard entry, which
HTML tag should you use?
o a) <kbd>
o b) <code>
o c) <samp>
o d) <pre>
Answer: a) <kbd>
69.
Which HTML tag is used to define the definition of a term in a
definition list?
o a) <dd>
o b) <dt>
o c) <dl>
o d) <term>
Answer: a) <dd>
70.
What is the use of the <sub> tag in HTML?
o a) It creates
superscript text.
o b) It creates subscript
text.
o c) It formats text in a
code block.
o d) It highlights text.
Answer: b) It creates subscript text.
71.
Which HTML tag represents a piece of text that has been removed
from a document?
o a) <s>
o b) <del>
o c) <removed>
o d) <strike>
Answer: b) <del>
72.
How can you create a block of text with indentation in HTML?
o a) <blockquote>
o b) <code>
o c) <div>
o d) <pre>
Answer: a) <blockquote>
73.
Which tag should be used to include a small, additional note or
annotation within a text block?
o a) <small>
o b) <note>
o c) <annotation>
o d) <highlight>
Answer: a) <small>
74.
To display a block of text with a specific font size and style as
defined in CSS, which HTML tag should be used?
o a) <font>
o b) <pre>
o c) <div>
o d) <span>
Answer: c) <div>
75.
Which tag is used to represent a block of code in HTML with
preserved formatting?
o a) <pre>
o b) <code>
o c) <samp>
o d) <var>
Answer: a) <pre>
