Practice test

Html - Test Set 2

Review 20 exam-focused questions with detailed explanations, then start the interactive test when you are ready.

20 questions

Questions and explanations

  1. Question 1

    Which of the following tag is used to define options in a drop-down selection list?
    1. <dropdown>
    2. <select>
    3. <list>
    4. <option>
    View explanation

    Sign In to See Explanations. Sign Up Here

  2. Question 2

    Which of the following tag is used to add rows in the table?
    1. <td> and </td>
    2. <tr> and </tr>
    3. <th> and </th>
    4. None of these
    View explanation

    Sign In to See Explanations. Sign Up Here

  3. Question 3

    Which tag is used to insert a horizontal line in HTML?
    1. <hr>
    2. <hline>
    3. <separator>
    4. <line>
    View explanation

    Sign In to See Explanations. Sign Up Here

  4. Question 4

    Which of the following is the container for <tr>, <th>, and <td>?
    1. <data>
    2. <group>
    3. <table>
    4. All of these
    View explanation

    Sign In to See Explanations. Sign Up Here

  5. Question 5

    How to insert a background image in HTML?
    1. <body background = "img.png">
    2. <bg-image = "img.png">
    3. <img background = "img.png">
    4. None of the above
    View explanation

    Sign In to See Explanations. Sign Up Here

  6. Question 6

    Which of the following is the correct way to create a list using the lowercase letters?
    1. <ol letter = "a">
    2. <ol type = "a">
    3. <ol alpha = "a">
    4. None of the above
    View explanation

    Sign In to See Explanations. Sign Up Here

  7. Question 7

    Which of the following HTML attribute is used to define inline styles?
    1. type
    2. class
    3. style
    4. None of these
    View explanation

    Sign In to See Explanations. Sign Up Here

  8. Question 8

    Which of the following is the paragraph tag in HTML?
    1. <b>
    2. <p>
    3. <pre>
    4. None of these
    View explanation

    Sign In to See Explanations. Sign Up Here

  9. Question 9

    Which HTML tag is used to define a description list?
    1. <dt>
    2. <dd>
    3. <dl>
    4. All of these
    View explanation

    Sign In to See Explanations. Sign Up Here

  10. Question 10

    The tags in HTML are:
    1. case-sensitive
    2. not case sensitive
    3. in lowercase
    4. in upper case
    View explanation

    Sign In to See Explanations. Sign Up Here

  11. Question 11

    Which of the following is the root tag of the HTML document?
    1. <head>
    2. <body>
    3. <title>
    4. <html>
    View explanation

    Sign In to See Explanations. Sign Up Here

  12. Question 12

    Which of the following tag is used to create a combo box (or drop-down box)?
    1. <select>
    2. <list>
    3. <ul>
    4. <input type = "dropdown">
    View explanation

    Sign In to See Explanations. Sign Up Here

  13. Question 13

    How do you create a table row in HTML?
    1. <td>
    2. <tr>
    3. <th>
    4. <row>
    View explanation

    Sign In to See Explanations. Sign Up Here

  14. Question 14

    Which tag is used to display bold text in HTML?
    1. <strong>
    2. <b>
    3. Both (a) and (b)
    4. <bold>
    View explanation

    Sign In to See Explanations. Sign Up Here

  15. Question 15

    Which tag is used to define a description list in HTML?
    1. <dl>
    2. <dd>
    3. <dt>
    4. <list>
    View explanation

    Sign In to See Explanations. Sign Up Here

  16. Question 16

    Which tag is used to create a button in HTML?
    1. <btn>
    2. <input type="button">
    3. <button>
    4. Both (b) and (c)
    View explanation

    Sign In to See Explanations. Sign Up Here

  17. Question 17

    Which tag is used to display text in italics in HTML?
    1. <i>
    2. <em>
    3. Both (a) and (b)
    4. <italic>
    View explanation

    Sign In to See Explanations. Sign Up Here

  18. Question 18

    __________ tag indicates start of the HTML document.
    1. <html>
    2. <head>
    3. <body>
    4. <title>
    View explanation

    Sign In to See Explanations. Sign Up Here

  19. Question 19

    Which tag is used to insert the largest heading in HTML?
    1. <h6>
    2. <h3>
    3. <h1>
    4. None of these
    View explanation

    Sign In to See Explanations. Sign Up Here

  20. Question 20

    Which HTML tag is used to display text along with a scrolling effect?
    1. <div>
    2. <marquee>
    3. <em>
    4. <scroll>
    View explanation

    Sign In to See Explanations. Sign Up Here