Kit Library / Computer Science / Web Development

⚡ Topic Learning Kit

HTML5 Lists and Tables

English 17 leveled MCQs 30 flashcards 9 games Free

Shared by a Veda learner · Generated with Veda AI

Veda Bites

The whole idea, one bite at a time

Veda Bites are swipeable micro-lessons — each one teaches exactly one idea. The bites below come from this kit — swipe through them in the app.

💡 Key Idea

Three Lists + One Table = Structured Data

Organise data like a pro with HTML.

HTML provides three types of lists and tables to organise information clearly and meaningfully.

↳ Choose the list type based on whether order matters; use tables for tabular data.

📖 Definition

List Tags at a Glance

Know your list tags in 15 seconds.

↳ Every list item uses <li>; definition lists use <dt> and <dd> pairs.

⚖️ Comparison

Unordered vs Ordered Lists

Bullets or numbers? Choose wisely.

↳ Use <ul> for items without order; <ol> when sequence matters.

💻 Code Example

Unordered List with Type Attribute

Bullets, but make them stylish.

The `type` attribute changes the bullet style: disc (default), circle, or square.

↳ Use type="circle" or type="square" to change bullet appearance.

💻 Code Example

Ordered List with Type Attribute

Numbers, letters, or Roman numerals?

↳ The type attribute on <ol> switches between decimal, alphabetic, and Roman numeral markers.

⭐ Important Fact

Reverse and Start: Control Numbering

Count backwards or start anywhere.

↳ Combine start and reversed to control where and how numbering begins and flows.

⚙️ Process

Building a Nested List

Lists inside lists — structure like a tree.

↳ Place the inner list inside an <li> of the outer list — never directly inside <ul> or <ol>.

📖 Definition

Definition Lists: Term + Description

Perfect for glossaries and FAQs.

↳ Use <dl> for name/value pairs like glossaries, FAQs, or metadata.

⭐ Important Fact

The <nav> Element for Navigation

Semantic HTML for menus.

The `<nav>` element defines a navigation section. Lists of links inside `<nav>` help search engines and users identify menus.

↳ Wrap navigation link lists in <nav> for better structure and SEO.

📖 Definition

Table Tags: The Building Blocks

Five tags build every table.

↳ Every table needs <table>, <tr>, and <td>; add <th> for headers and <caption> for description.

💻 Code Example

Your First HTML Table

Rows and columns in 20 seconds.

↳ Each <tr> is a row; <th> cells are headers, <td> cells are data.

💡 Key Idea

colspan and rowspan: Merge Cells

One cell, many columns or rows.

↳ Use colspan to merge horizontally and rowspan to merge vertically — count carefully to avoid misalignment.

⚠️ Common Mistake

Common Table Mistakes to Avoid

Don't break your table layout.

↳ Proper closing tags, correct span values, and captions keep tables clean and accessible.

⚠️ Common Mistake

List Type Confusion

Bulleted ≠ numbered.

↳ Unordered = bullets; ordered = numbers; start sets the beginning, not the end.

🎯 Exam Tip

Exam-Ready: Tag Recall

Ace the tag-matching question.

↳ Memorise tag-to-purpose mapping — it's the most common exam question type.

🧠 Memory Trick

Remember the Table Tags

TR-TH-TD: Row, Head, Data.

TR = Table Row · TH = Table Header · TD = Table Data · DL = Definition List · DT = Definition Term · DD = Definition Description.

↳ The second letter tells you the role: R=row, H=header, D=data, L=list, T=term.

🌍 Real World

Real-World Use: Endangered Species Website

Lists and tables save wildlife.

↳ Pick lists for grouping and tables for comparing multiple attributes per item.

✅ Best Practice

Accessible Tables

Tables everyone can read.

↳ Captions and proper header cells make tables accessible to screen readers and search engines.

Smart notes

What you'll study, topic by topic

1

HTML5 Lists and Tables

20 min

HTML lists and tables are used to organise and present data in a structured way on a webpage. Lists group related items (unordered, ordered, definition), while tables display data in rows and columns with tags like , , ,…

  • HTML lists organise related items; HTML tables organise data into rows and columns.
  • HTML has three list types: unordered (``), ordered (``), and definition (``).
  • Unordered lists are also called bulleted lists because items are marked with bullets.

Full explanation, worked examples & memory tricks in the app

Leveled MCQ practice

Try the smart MCQs from this kit

All 17 questions, laddered from warm-up to topper-level, each with its answer and the reasoning behind it.

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.

Flashcards

Tap a card to flip it

30 flashcards in this kit — the app reviews them with spaced repetition so the right card returns on the right day.

Learning games

Play your way through this kit

Every game is built from this kit's own content — scores feed your mastery, so playing counts as studying.

🎮

Word Match

Built from this kit's own content

🎮

True False

Built from this kit's own content

🎮

Memory Match

Built from this kit's own content

🎮

Flashcard Battle

Built from this kit's own content

🎮

Speed Quiz

Built from this kit's own content

🎮

Guess Term

Built from this kit's own content

🎮

Sequence Builder

Built from this kit's own content

🎮

Categorization

Built from this kit's own content

🎮

Revision Battle

Built from this kit's own content

Playable in the app

Study it properly — free, in the app

The full Veda Bites deck, complete notes, spaced-repetition flashcards, leveled MCQs, tests and games for this kit — plus Daily Facts and the Arena, every day.