HTML Course | Practice Quiz 1

Last Updated :
Discuss
Comments

Question 1

What is the purpose of using div tags in HTML?

  • A

    For creating Different styles.

  • B

    For creating different sections.

  • C

    For adding headings.

  • D

    For adding titles.

Question 2

Which among the following is the correct way in HTML to insert an image?

  • A

    <img url=“https://bit.ly/2FicgIx”>Geeksforgeeks</img>

  • B

    <img href=“https://bit.ly/2FicgIx” alt= “Geeksforgeeks”></img>

  • C

    <img src=“https://bit.ly/2FicgIx” alt=“Geeksforgeeks”>

  • D

    <image src=“https://bit.ly/2FicgIx” alt=“Geeksforgeeks”></image>

Question 3

Which of the following elements can be used in HTML to create a table?

  • A

    <table> , <tbody> , <trow>

  • B

    <table> , <tb> , <trow>

  • C

    <table> , <tbody> , <tr>

  • D

    All of the above

Question 4

Which tag is used to add an header in HTML5 table?

  • A

    <theader>

  • B

    <h1>

  • C

    <th>

  • D

    <header>

Question 5

Which tag is used for creating a drop-down selection list?

  • A

    <select>

  • B

    <option>

  • C

    <dropdown>

  • D

    <list>

Question 6

Which among the following is correct HTML code for making a checkbox?

  • A

    <checkbox>

  • B

    <input type="checkbox">

  • C

    <check>

  • D

    <input type="check">

Question 7

Which of the following is the correct way to add background color in HTML?

  • A

    <body color = “green”>

  • B

    <body bg-color = “green”>

  • C

    <body style = “background-color=green”>

  • D

    <body style = “background-color: green;”>

Question 8

Which of the following attributes is used to open an hyperlink in new tab?

  • A

    tab

  • B

    href

  • C

    target

  • D

    ref

Question 9

Which of the following tags is used to add a line-break in HTML?

  • A

    <br>

  • B

    <break>

  • C

    </break>

  • D

    </br>

Question 10

Which of the following tags is used to make a portion of text italic in HTML?

  • A

    <italic>

  • B

    <style= “i”>

  • C

    <i>

  • D

    <style=“italic”>

There are 20 questions to complete.

Take a part in the ongoing discussion