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
- Which of the following tag is used to define options in a drop-down selection list?
Question 1
- <dropdown>
- <select>
- <list>
- <option>
View explanation
Sign In to See Explanations. Sign Up Here
- Which of the following tag is used to add rows in the table?
Question 2
- <td> and </td>
- <tr> and </tr>
- <th> and </th>
- None of these
View explanation
Sign In to See Explanations. Sign Up Here
- Which tag is used to insert a horizontal line in HTML?
Question 3
- <hr>
- <hline>
- <separator>
- <line>
View explanation
Sign In to See Explanations. Sign Up Here
- Which of the following is the container for <tr>, <th>, and <td>?
Question 4
- <data>
- <group>
- <table>
- All of these
View explanation
Sign In to See Explanations. Sign Up Here
- How to insert a background image in HTML?
Question 5
- <body background = "img.png">
- <bg-image = "img.png">
- <img background = "img.png">
- None of the above
View explanation
Sign In to See Explanations. Sign Up Here
- Which of the following is the correct way to create a list using the lowercase letters?
Question 6
- <ol letter = "a">
- <ol type = "a">
- <ol alpha = "a">
- None of the above
View explanation
Sign In to See Explanations. Sign Up Here
- Which of the following HTML attribute is used to define inline styles?
Question 7
- type
- class
- style
- None of these
View explanation
Sign In to See Explanations. Sign Up Here
- Which of the following is the paragraph tag in HTML?
Question 8
- <b>
- <p>
- <pre>
- None of these
View explanation
Sign In to See Explanations. Sign Up Here
- Which HTML tag is used to define a description list?
Question 9
- <dt>
- <dd>
- <dl>
- All of these
View explanation
Sign In to See Explanations. Sign Up Here
- The tags in HTML are:
Question 10
- case-sensitive
- not case sensitive
- in lowercase
- in upper case
View explanation
Sign In to See Explanations. Sign Up Here
- Which of the following is the root tag of the HTML document?
Question 11
- <head>
- <body>
- <title>
- <html>
View explanation
Sign In to See Explanations. Sign Up Here
- Which of the following tag is used to create a combo box (or drop-down box)?
Question 12
- <select>
- <list>
- <ul>
- <input type = "dropdown">
View explanation
Sign In to See Explanations. Sign Up Here
- How do you create a table row in HTML?
Question 13
- <td>
- <tr>
- <th>
- <row>
View explanation
Sign In to See Explanations. Sign Up Here
- Which tag is used to display bold text in HTML?
Question 14
- <strong>
- <b>
- Both (a) and (b)
- <bold>
View explanation
Sign In to See Explanations. Sign Up Here
- Which tag is used to define a description list in HTML?
Question 15
- <dl>
- <dd>
- <dt>
- <list>
View explanation
Sign In to See Explanations. Sign Up Here
- Which tag is used to create a button in HTML?
Question 16
- <btn>
- <input type="button">
- <button>
- Both (b) and (c)
View explanation
Sign In to See Explanations. Sign Up Here
- Which tag is used to display text in italics in HTML?
Question 17
- <i>
- <em>
- Both (a) and (b)
- <italic>
View explanation
Sign In to See Explanations. Sign Up Here
- __________ tag indicates start of the HTML document.
Question 18
- <html>
- <head>
- <body>
- <title>
View explanation
Sign In to See Explanations. Sign Up Here
- Which tag is used to insert the largest heading in HTML?
Question 19
- <h6>
- <h3>
- <h1>
- None of these
View explanation
Sign In to See Explanations. Sign Up Here
- Which HTML tag is used to display text along with a scrolling effect?
Question 20
- <div>
- <marquee>
- <em>
- <scroll>
View explanation
Sign In to See Explanations. Sign Up Here