HTML5 Lists and Tables: 17 MCQs

All 17 multiple-choice questions from this kit, free and with no sign-up.

Warm-up · 6 questions

Q1. Which HTML tag is used to create an unordered list?

Beginner
A <dl>
B <ol>
C <ul>
D <li>

Answers and explanations are in the Veda app.

Q2. What is the default bullet style for an unordered list?

Beginner
A circle
B none
C square
D disc

Answers and explanations are in the Veda app.

Q3. Which attribute of the `<ol>` tag allows you to start numbering from a specific value?

Beginner
A init
B begin
C value
D start

Answers and explanations are in the Veda app.

Q4. In a definition list, which tag is used to define the term?

Beginner
A <dt>
B <li>
C <dl>
D <dd>

Answers and explanations are in the Veda app.

Q5. Which tag defines a row in an HTML table?

Beginner
A <tr>
B <th>
C <td>
D <table>

Answers and explanations are in the Veda app.

Q6. An ordered list can be displayed in reverse order using the `reversed` attribute, and its starting value can be set with the `start` attribute.

Beginner
A True
B False

Answers and explanations are in the Veda app.

Building up · 7 questions

Q7. What does the `colspan` attribute do in a table?

Intermediate
A Sets the number of columns in the table
B Merges a cell horizontally across columns
C Merges a cell vertically across rows
D Aligns text in a cell

Answers and explanations are in the Veda app.

Q8. Consider an ordered list with `type="I"` and `start="4"`. What will be the first number displayed?

Intermediate
A D
B 4
C IV
D I

Answers and explanations are in the Veda app.

Q9. A student wants to create a navigation menu with a list of links. Which HTML5 element is most appropriate to wrap the list?

Intermediate
A <menu>
B <nav>
C <header>
D <div>

Answers and explanations are in the Veda app.

Q10. What is the correct way to nest an unordered list inside an ordered list?

Intermediate
A Nesting lists is not allowed in HTML
B Place the <ul> inside the <ol> before any <li>
C Place the <ul> inside an <li> of the <ol>
D Place the <ul> directly inside the <ol> after an <li>

Answers and explanations are in the Veda app.

Q11. Which of the following is a common mistake when using tables?

Intermediate
A Using <tr> for rows
B Using <th> for header cells
C Forgetting to close the </table> tag
D Adding a <caption>

Answers and explanations are in the Veda app.

Q12. A table has a header row with three columns: 'Name', 'Subject', and 'Score'. If you want 'Subject' to span two columns, which attribute should you use?

Intermediate
A rowspan="2"
B colspan="2"
C merge="2"
D span="2"

Answers and explanations are in the Veda app.

Q13. Which attribute of `<ol>` would you use to display a countdown list from 10 to 1?

Intermediate
A start="10"
B descending
C reversed
D type="1"

Answers and explanations are in the Veda app.

Topper level · 4 questions

Q14. Assertion (A): The `<caption>` tag improves table accessibility. Reason (R): It provides a title for the table that screen readers can announce.

Advanced
A Both A and R are true, but R does not explain A.
B A is true, but R is false.
C Both A and R are true, and R explains A.
D A is false, but R is true.

Answers and explanations are in the Veda app.

Q15. A web developer uses a table to position images and text on a page. Why is this considered bad practice?

Advanced
A Tables are for tabular data, not layout; CSS should be used.
B Tables are not supported in HTML5.
C Tables cannot contain images.
D Tables are too slow to render.

Answers and explanations are in the Veda app.

Q16. In a table, a cell has `rowspan="3"`. What does this mean?

Advanced
A The cell spans three columns horizontally.
B The cell is repeated in three rows.
C The cell spans three rows vertically.
D The cell contains three rows of data.

Answers and explanations are in the Veda app.

Q17. Given the following HTML snippet, what will be the output of the ordered list when rendered in a browser? ```html <ol type="A" start="3"> <li>Item 1</li> <li>Item 2</li> </ol> ```

Advanced
A D. 1. Item 1, 2. Item 2
B C. 3. Item 1, 4. Item 2
C B. C. Item 1, D. Item 2
D A. Item 1, Item 2

Answers and explanations are in the Veda app.

Make your own

Your notes can be a kit like these

Every kit here was made from real study material. Point Veda at a chapter, a PDF, a photo or a link and get notes, flashcards, practice MCQs, games and a scored test — free to start, in more than 40 languages.

  • Chapter notes
  • Flashcards
  • Practice MCQs
  • Scored tests
  • Paper Solver

Get Veda free See what students get

Free to start · Android app and web · More than 40 languages