MCQs Of Class 3:
Text
Formatting in HTML
- Which HTML tag is used to make text bold?
- a) <bold>
- b) <strong>
- c) <b>
- d) <em>
Answer: b) <strong>
- Which tag should you use to italicize text
in HTML?
- a) <italic>
- b) <i>
- c) <em>
- d) <strong>
Answer: c) <em>
- How can you underline text in HTML?
- a) <u>
- b) <underline>
- c) <strong>
- d) <em>
Answer: a) <u>
- Which HTML tag is used to create a
block-level quotation?
- a) <quote>
- b) <blockquote>
- c) <q>
- d) <citation>
Answer: b) <blockquote>
- What does the <s> tag do in HTML?
- a) It creates a strikethrough effect on
the text.
- b) It makes text bold.
- c) It italicizes text.
- d) It underlines text.
Answer: a) It creates a strikethrough effect on the
text.
- To display text as a subscript, which tag
should you use?
- a) <sub>
- b) <sup>
- c) <script>
- d) <subscript>
Answer: a) <sub>
- Which tag is used for inline quotations?
- a) <q>
- b) <quote>
- c) <blockq>
- d) <cite>
Answer: a) <q>
- How do you create a superscript text in
HTML?
- a) <sup>
- b) <sub>
- c) <script>
- d) <superscript>
Answer: a) <sup>
- Which attribute is used to specify a
citation for a blockquote?
- a) cite
- b) source
- c) reference
- d) author
Answer: a) cite
- What does the <cite> tag represent
in HTML?
- a) It denotes a citation or reference to
a source.
- b) It emphasizes text.
- c) It creates a hyperlink.
- d) It formats text as a block-level
element.
Answer: a) It denotes a citation or reference to a
source.
- Which HTML tag is used for text that
represents a variable or programming code?
- a) <code>
- b) <pre>
- c) <var>
- d) <samp>
Answer: a) <code>
- To display a note or side comment in a
document, which tag is appropriate?
- a) <note>
- b) <aside>
- c) <comment>
- d) <tip>
Answer: b) <aside>
- Which tag should be used to emphasize text
with a stronger importance?
- a) <b>
- b) <strong>
- c) <i>
- d) <em>
Answer: b) <strong>
- What is the purpose of the <pre> tag
in HTML?
- a) It formats text to display exactly as
written, preserving whitespace and line breaks.
- b) It italicizes text.
- c) It creates a paragraph.
- d) It makes text bold.
Answer: a) It formats text to display exactly as
written, preserving whitespace and line breaks.
- Which tag is used for text that should be
displayed in a specific typeface, such as a monospace font?
- a) <pre>
- b) <tt>
- c) <code>
- d) <font>
Answer: b) <tt>
- How do you create a line break in an HTML
document?
- a) <break>
- b) <br>
- c) <line>
- d) <newline>
Answer: b) <br>
- Which HTML tag is used to denote a short
quotation?
- a) <blockquote>
- b) <quote>
- c) <q>
- d) <citation>
Answer: c) <q>
- In HTML, which tag is used to format text
as a citation or reference to a title of a work?
- a) <title>
- b) <reference>
- c) <cite>
- d) <source>
Answer: c) <cite>
- Which HTML tag is used to define a term in
a definition list?
- a) <dt>
- b) <dd>
- c) <list>
- d) <term>
Answer: a) <dt>
- Which tag is used for displaying
preformatted text that retains spaces and line breaks?
- a) <code>
- b) <pre>
- c) <tt>
- d) <samp>
Answer: b) <pre>
- Which HTML tag is used to apply a
strikethrough effect to text?
- a) <del>
- b) <s>
- c) <strike>
- d) <u>
Answer: b) <s>
- To format text that represents computer
code or programming syntax, which tag is appropriate?
- a) <code>
- b) <pre>
- c) <samp>
- d) <var>
Answer: a) <code>
- Which tag is used to display text as a
variable in HTML?
- a) <var>
- b) <code>
- c) <samp>
- d) <pre>
Answer: a) <var>
- What is the function of the <small>
tag in HTML?
- a) To make text smaller than the
surrounding text.
- b) To emphasize text.
- c) To create a subheading.
- d) To display text in a small font size
with a warning effect.
Answer: a) To make text smaller than the surrounding
text.
- Which tag is used for emphasizing text
with a lesser degree than <strong>?
- a) <b>
- b) <i>
- c) <em>
- d) <mark>
Answer: c) <em>
- To display a block of text that is meant
to be displayed exactly as typed, which tag should be used?
- a) <code>
- b) <pre>
- c) <p>
- d) <blockquote>
Answer: b) <pre>
- Which HTML tag is used to create a
highlight effect on text?
- a) <highlight>
- b) <mark>
- c) <b>
- d) <em>
Answer: b) <mark>
- How can you combine text formatting tags
to format text as both bold and italicized?
- a)
<b><i>text</i></b>
- b)
<strong><em>text</em></strong>
- c)
<i><strong>text</strong></i>
- d)
<bold><italic>text</italic></bold>
Answer: b)
<strong><em>text</em></strong>
- Which tag is used to define the text
content that should be considered as user input or sample output?
- a) <code>
- b) <samp>
- c) <var>
- d) <pre>
Answer: b) <samp>
- To display a quote from an external source
in a block format with indentation, which tag should be used?
- a) <q>
- b) <cite>
- c) <blockquote>
- d) <s>
Answer: c) <blockquote>
- Which tag is used to define a citation for
a quote or a work in HTML?
- a) <reference>
- b) <citation>
- c) <cite>
- d) <source>
Answer: c) <cite>
- How do you create a list of terms and
their definitions in HTML?
- a) Using <ul>, <li>, and
<dl>
- b) Using <ol>, <dt>, and
<dd>
- c) Using <dl>, <dt>, and
<dd>
- d) Using <ul>, <li>, and
<dl>
Answer: c) <dl>, <dt>, and <dd>
- Which tag is used to highlight a piece of
text for reference or emphasis?
- a) <highlight>
- b) <mark>
- c) <strong>
- d) <em>
Answer: b) <mark>
- To create a text area for input that
displays with a preformatted format, which tag is used?
- a) <input>
- b) <textarea>
- c) <pre>
- d) <code>
Answer: b) <textarea>
- Which tag is used to show a line of text
with a single line break after it?
- a) <line>
- b) <break>
- c) <br>
- d) <hr>
Answer: c) <br>
- Which HTML tag should be used to define a
text block that is considered a part of a sample output?
- a) <code>
- b) <samp>
- c) <pre>
- d) <var>
Answer: b) <samp>
- What does the <address> tag
represent in HTML?
- a) The physical address of a location.
- b) Contact information for the author of
the document.
- c) The URL for a web resource.
- d) The location of a file in a web
server.
Answer: b) Contact information for the author of the
document.
- Which tag is used to include a piece of
code or a technical term in a document?
- a) <term>
- b) <code>
- c) <pre>
- d) <example>
Answer: b) <code>
- What does the <strong> tag do in
HTML?
- a) It creates italicized text.
- b) It emphasizes text with a strong
importance.
- c) It creates underlined text.
- d) It formats text as a hyperlink.
Answer: b) It emphasizes text with a strong
importance.
- Which tag is used to create an inline code
element within a paragraph?
- a) <pre>
- b) <code>
- c) <samp>
- d) <var>
Answer: b) <code>
- Which tag should be used to emphasize a
piece of text with a lower degree of importance than <strong>?
- a) <bold>
- b) <em>
- c) <i>
- d) <u>
Answer: b) <em>
- To display a line that separates content
in an HTML document, which tag is used?
- a) <line>
- b) <divider>
- c) <hr>
- d) <separator>
Answer: c) <hr>
- Which HTML tag is used to define text that
has been deleted from a document?
- a) <s>
- b) <del>
- c) <strike>
- d) <removed>
Answer: b) <del>
- How do you denote a section of text as a
variable in HTML?
- a) <var>
- b) <code>
- c) <samp>
- d) <pre>
Answer: a) <var>
- Which tag would you use to create an emphasized
block of text that stands out from the surrounding content?
- a) <strong>
- b) <em>
- c) <blockquote>
- d) <mark>
Answer: c) <blockquote>
- What is the purpose of the <del> tag
in HTML?
- a) It indicates deleted text.
- b) It highlights text.
- c) It creates a line break.
- d) It adds emphasis to text.
Answer: a) It indicates deleted text.
- To show a block of text with preserved
whitespace and line breaks, which tag should be used?
- a) <pre>
- b) <code>
- c) <samp>
- d) <var>
Answer: a) <pre>
- Which tag is used to mark text as a sample
output from a program?
- a) <code>
- b) <samp>
- c) <pre>
- d) <output>
Answer: b) <samp>
- Which HTML tag is used to display text
with an underline effect?
- a) <underline>
- b) <u>
- c) <em>
- d) <strong>
Answer: b) <u>
- To create a section of text that should be
highlighted as a note or highlight, which tag is used?
- a) <highlight>
- b) <mark>
- c) <em>
- d) <strong>
Answer: b) <mark>
- What is the function of the <kbd>
tag in HTML?
- a) It denotes text to be displayed as
keyboard input.
- b) It creates a block-level element.
- c) It italicizes text.
- d) It creates a block of code.
Answer: a) It denotes text to be displayed as keyboard
input.
- Which tag is used for text that represents
the result of user input or user interface interaction?
- a) <var>
- b) <samp>
- c) <code>
- d) <input>
Answer: b) <samp>
- What does the <i> tag do in HTML?
- a) It makes the text bold.
- b) It italicizes the text.
- c) It underlines the text.
- d) It creates a strikethrough effect.
Answer: b) It italicizes the text.
- Which tag is used to represent sample
output or a response from a computer program?
- a) <output>
- b) <samp>
- c) <code>
- d) <pre>
Answer: b) <samp>
- To create a horizontal rule or line that
separates sections in a web page, which HTML tag should be used?
- a) <hr>
- b) <line>
- c) <divider>
- d) <separator>
Answer: a) <hr>
- Which HTML tag is used to represent text
that has been inserted into a document?
- a) <ins>
- b) <added>
- c) <new>
- d) <insert>
Answer: a) <ins>
- Which tag is used to represent the text
that should be displayed as a programming or scripting language?
- a) <code>
- b) <script>
- c) <program>
- d) <pre>
Answer: a) <code>
- How can you format text to appear as if it
is a sample of user input?
- a) <input>
- b) <samp>
- c) <code>
- d) <var>
Answer: b) <samp>
- Which tag is used to create a line of text
that represents a section or header within a document?
- a) <hr>
- b) <header>
- c) <line>
- d) <section>
Answer: b) <header>
- What does the <mark> tag do in HTML?
- a) It highlights text.
- b) It italicizes text.
- c) It creates a hyperlink.
- d) It makes text bold.
Answer: a) It highlights text.
- Which HTML tag should be used for text
that indicates a computer program output?
- a) <output>
- b) <samp>
- c) <code>
- d) <pre>
Answer: b) <samp>
- To create a block-level element that can
contain other HTML elements and preserve formatting, which tag is
appropriate?
- a) <div>
- b) <span>
- c) <pre>
- d) <section>
Answer: c) <pre>
- Which tag would you use to create a text
block that provides an example of code or programming text?
- a) <code>
- b) <example>
- c) <samp>
- d) <pre>
Answer: d) <pre>
- How can you display text with a
variable-like appearance in HTML?
- a) <code>
- b) <samp>
- c) <var>
- d) <pre>
Answer: c) <var>
- Which HTML tag is used to mark the start
of a definition list?
- a) <dl>
- b) <dt>
- c) <dd>
- d) <list>
Answer: a) <dl>
- What does the <b> tag do in HTML?
- a) It makes text bold without implying
any additional importance.
- b) It italicizes the text.
- c) It underlines the text.
- d) It creates a block-level element.
Answer: a) It makes text bold without implying any
additional importance.
- Which tag is used to emphasize text that
is not as important as <strong>?
- a) <b>
- b) <i>
- c) <u>
- d) <mark>
Answer: b) <i>
- To display a text with the appearance of a
keyboard entry, which HTML tag should you use?
- a) <kbd>
- b) <code>
- c) <samp>
- d) <pre>
Answer: a) <kbd>
- Which HTML tag is used to define the
definition of a term in a definition list?
- a) <dd>
- b) <dt>
- c) <dl>
- d) <term>
Answer: a) <dd>
- What is the use of the <sub> tag in
HTML?
- a) It creates superscript text.
- b) It creates subscript text.
- c) It formats text in a code block.
- d) It highlights text.
Answer: b) It creates subscript text.
- Which HTML tag represents a piece of text
that has been removed from a document?
- a) <s>
- b) <del>
- c) <removed>
- d) <strike>
Answer: b) <del>
- How can you create a block of text with
indentation in HTML?
- a) <blockquote>
- b) <code>
- c) <div>
- d) <pre>
Answer: a) <blockquote>
- Which tag should be used to include a
small, additional note or annotation within a text block?
- a) <small>
- b) <note>
- c) <annotation>
- d) <highlight>
Answer: a) <small>
- To display a block of text with a specific
font size and style as defined in CSS, which HTML tag should be used?
- a) <font>
- b) <pre>
- c) <div>
- d) <span>
Answer: c) <div>
- Which tag is used to represent a block of
code in HTML with preserved formatting?
- a) <pre>
- b) <code>
- c) <samp>
- d) <var>
Answer: a) <pre>