Create New Post

HTML MCQs - 7

  1. Which HTML tag is used to create an ordered list?

    • A) <ul>
    • B) <li>
    • C) <ol>
    • D) <list>

    Answer: C) <ol>

    Explanation: The <ol> tag is used to create an ordered (numbered) list in HTML.

  2. What is the correct HTML tag for defining a division or a section in a webpage?

    • A) <section>
    • B) <div>
    • C) <block>
    • D) <area>

    Answer: B) <div>

    Explanation: The <div> tag is a block-level element used to define divisions or sections in an HTML document.

  3. Which HTML tag is used to create a hyperlink to another webpage?

    • A) <url>
    • B) <a>
    • C) <link>
    • D) <href>

    Answer: B) <a>

    Explanation: The <a> tag is used to create hyperlinks in HTML, allowing users to navigate to other web pages.

  4. What is the correct HTML tag for inserting an image?

    • A) <img>
    • B) <image>
    • C) <picture>
    • D) <source>

    Answer: A) <img>

    Explanation: The <img> tag is used to insert an image into an HTML document.

  5. Which HTML tag is used to define a table row?

    • A) <tr>
    • B) <table>
    • C) <row>
    • D) <th>

    Answer: A) <tr>

    Explanation: The <tr> tag is used to define a row within an HTML table.

  6. What is the correct HTML tag for creating a hyperlink to another webpage that opens in a new browser tab?

    • A) <a target="_blank">
    • B) <a new="true">
    • C) <a href="#" target="_blank">
    • D) <a href="#" newtab>

    Answer: A) <a target="_blank">

    Explanation: Adding the attribute "target" with the value "_blank" to the <a> tag will open the linked document in a new browser tab or window.

  7. Which HTML tag is used for creating a numbered list?

    • A) <ol>
    • B) <ul>
    • C) <li>
    • D) <list>

    Answer: A) <ol>

    Explanation: The <ol> tag is used to create an ordered (numbered) list in HTML.

  8. What is the correct HTML tag for defining an input field for entering text?

    • A) <input>
    • B) <text>
    • C) <textbox>
    • D) <textfield>

    Answer: A) <input>

    Explanation: The <input> tag is used to create various types of input fields in HTML, including text fields.

  9. Which HTML tag is used to define a table header?

    • A) <thead>
    • B) <th>
    • C) <header>
    • D) <table-header>

    Answer: B) <th>

    Explanation: The <th> tag is used to define table header cells in an HTML table.

  10. What is the correct HTML tag for defining a paragraph of text?

    • A) <p>
    • B) <para>
    • C) <paragraph>
    • D) <text>

    Answer: A) <p>

    Explanation: The <p> tag is used to define paragraphs of text in HTML.

Comments

Leave a Reply

Your email address will not be published. Required fields are marked *

57623