HTML – Basic Tags-formatting and fonts

  1. What does HTML stand for?
    a) Hyper Trainer Marking Language
    b) Hyper Text Marketing Language
    c) Hyper Text Markup Language
    d) High Text Machine Language
    Answer: c) Hyper Text Markup Language

  2. Who is the inventor of HTML?
    a) Dennis Ritchie
    b) Tim Berners-Lee
    c) James Gosling
    d) Brendan Eich
    Answer: b) Tim Berners-Lee

  3. Which of the following is the correct extension of an HTML file?
    a) .htm
    b) .html
    c) Both a and b
    d) .xml
    Answer: c) Both a and b

  4. What is the purpose of the <html> tag?
    a) Displays content
    b) Defines HTML document
    c) Adds links
    d) Adds images
    Answer: b) Defines HTML document

  5. Which tag is used to define the main heading in HTML?
    a) <head>
    b) <h1>
    c) <heading>
    d) <title>
    Answer: b) <h1>

  6. What tag is used to display a paragraph in HTML?
    a) <para>
    b) <pg>
    c) <p>
    d) <text>
    Answer: c) <p>

  7. Which tag is used to insert a line break in HTML?
    a) <break>
    b) <br>
    c) <lb>
    d) <line>
    Answer: b) <br>

  8. Which tag is used to make text bold in HTML?
    a) <bold>
    b) <b>
    c) <strong>
    d) Both b and c
    Answer: d) Both b and c

  9. What does the <i> tag do in HTML?
    a) Inserts image
    b) Italicizes text
    c) Inputs value
    d) Makes text bold
    Answer: b) Italicizes text

  10. Which tag is used to underline text in HTML?
    a) <ul>
    b) <underline>
    c) <u>
    d) <line>
    Answer: c) <u>


  1. Which tag is used to define the title of a document?
    a) <heading>
    b) <title>
    c) <head>
    d) <meta>
    Answer: b) <title>

  2. The <hr> tag is used to:
    a) Create horizontal line
    b) Highlight text
    c) Draw boxes
    d) Display images
    Answer: a) Create horizontal line

  3. What is the default alignment of text in HTML?
    a) Center
    b) Left
    c) Right
    d) Justify
    Answer: b) Left

  4. Which tag is used to insert a hyperlink?
    a) <link>
    b) <href>
    c) <a>
    d) <url>
    Answer: c) <a>

  5. Which tag is used to insert an image?
    a) <img>
    b) <image>
    c) <pic>
    d) <src>
    Answer: a) <img>

  6. Which attribute is used to specify the URL of an image?
    a) href
    b) src
    c) link
    d) url
    Answer: b) src

  7. Which tag is used for superscript text?
    a) <sp>
    b) <super>
    c) <sup>
    d) <s>
    Answer: c) <sup>

  8. Which tag is used for subscript text?
    a) <sub>
    b) <sb>
    c) <low>
    d) <down>
    Answer: a) <sub>

  9. Which tag is used to strike through text?
    a) <strike>
    b) <s>
    c) <del>
    d) All of the above
    Answer: d) All of the above

  10. Which tag contains meta-information about the HTML document?
    a) <meta>
    b) <head>
    c) <body>
    d) <info>
    Answer: b) <head>


  1. Which element is used to group content in a block-level container?
    a) <div>
    b) <span>
    c) <block>
    d) <group>
    Answer: a) <div>

  2. Which tag is used to group inline elements?
    a) <div>
    b) <section>
    c) <span>
    d) <p>
    Answer: c) <span>

  3. Which attribute specifies the font size in older HTML?
    a) font-size
    b) size
    c) text-size
    d) fontsize
    Answer: b) size

  4. What tag was used in older HTML to define font?
    a) <font>
    b) <text>
    c) <style>
    d) <type>
    Answer: a) <font>

  5. Which tag defines preformatted text?
    a) <text>
    b) <pre>
    c) <p>
    d) <code>
    Answer: b) <pre>

  6. Which element is used to show computer code?
    a) <code>
    b) <script>
    c) <text>
    d) <keyboard>
    Answer: a) <code>

  7. Which tag makes text appear in monospaced font?
    a) <pre>
    b) <tt>
    c) <code>
    d) All of the above
    Answer: d) All of the above

  8. Which tag is used for inserting comments in HTML?
    a) <!-- comment -->
    b) // comment
    c) /* comment */
    d) # comment
    Answer: a) <!-- comment -->

  9. What does <em> stand for?
    a) Emphasized text
    b) Email link
    c) Empty element
    d) Embedded link
    Answer: a) Emphasized text

  10. Which tag is used to define emphasized text?
    a) <italic>
    b) <em>
    c) <highlight>
    d) <important>
    Answer: b) <em>


  1. Which tag indicates strong importance?
    a) <important>
    b) <strong>
    c) <bold>
    d) <imp>
    Answer: b) <strong>

  2. Which HTML tag is used to define a line break?
    a) <lb>
    b) <br>
    c) <break>
    d) <nl>
    Answer: b) <br>

  3. What tag is used for short quotations?
    a) <q>
    b) <blockquote>
    c) <quote>
    d) <qt>
    Answer: a) <q>

  4. What is the purpose of the <blockquote> tag?
    a) Display block-level quotes
    b) Display code blocks
    c) Display tables
    d) Display forms
    Answer: a) Display block-level quotes

  5. Which HTML tag specifies the main content area?
    a) <main>
    b) <body>
    c) <section>
    d) <content>
    Answer: a) <main>

  6. What tag is used for highlighting text in HTML5?
    a) <highlight>
    b) <mark>
    c) <strong>
    d) <color>
    Answer: b) <mark>

  7. Which tag creates a tooltip on hover?
    a) title
    b) tooltip
    c) hover
    d) alt
    Answer: a) title

  8. What tag is used to define an abbreviation in HTML?
    a) <abbr>
    b) <short>
    c) <abbrv>
    d) <define>
    Answer: a) <abbr>

  9. Which attribute is used with <abbr> to show full form?
    a) info
    b) title
    c) name
    d) full
    Answer: b) title

  10. Which tag is used to display deleted text?
    a) <del>
    b) <strike>
    c) <remove>
    d) <s>
    Answer: a) <del>


  1. Which tag defines inserted text?
    a) <ins>
    b) <add>
    c) <insert>
    d) <i>
    Answer: a) <ins>

  2. What is the correct structure of an HTML document?
    a) html > head > body
    b) head > html > body
    c) body > head > html
    d) html > body > head
    Answer: a) html > head > body

  3. What does the <head> tag contain?
    a) Visible content
    b) Metadata and links
    c) Image and video
    d) Tables and forms
    Answer: b) Metadata and links

  4. Which tag defines the body of the document?
    a) <document>
    b) <page>
    c) <body>
    d) <main>
    Answer: c) <body>

  5. Which HTML version introduced semantic tags like <main>, <mark>, <article>?
    a) HTML 3.2
    b) HTML 4.01
    c) HTML5
    d) XHTML
    Answer: c) HTML5

  6. Which tag is used to apply inline style in HTML?
    a) <style>
    b) style attribute
    c) <css>
    d) <format>
    Answer: b) style attribute

  7. What attribute is used to change font color?
    a) font
    b) color
    c) style
    d) text
    Answer: c) style

  8. What tag should be used to include CSS in HTML?
    a) <style>
    b) <css>
    c) <format>
    d) <link>
    Answer: a) <style>

  9. Which tag is used to link an external stylesheet?
    a) <style>
    b) <link>
    c) <css>
    d) <script>
    Answer: b) <link>

  10. Which HTML attribute specifies the font face in old HTML?
    a) face
    b) font
    c) style
    d) type
    Answer: a) face

error: Content is protected !!