Lesson 3 of 6

Lesson 3 — Lists, Tables, and Select Dropdowns

Title: Lists, tables, and <select> dropdowns in real UIs

Description: Cover ordered and nested lists, <select> / <option>, and table markup (table, tr, th, td) used in dashboards and admin panels.

Why it matters for QA: Grids, menus, and filters dominate enterprise apps. You verify sorting, pagination, default selections, and row data — all easier when you understand the HTML behind them.

1. Unordered Lists (ul)

Bullet list.

htmlhtml
<ul>

    <li>Apple</li>

    <li>Banana</li>

    <li>Orange</li>

</ul>

2. Ordered Lists (ol)

Numbered list.

htmlhtml
<ol>

    <li>Login</li>

    <li>Open Dashboard</li>

    <li>Logout</li>

</ol>

3. List Item (li)

htmlhtml
<li>Product</li>

Used inside:

  • ul
  • ol

4. Nested Lists

htmlhtml
<ul>

    <li>
        Fruits

        <ul>
            <li>Apple</li>
            <li>Orange</li>
        </ul>

    </li>

</ul>

5. QA and Lists

QA checks:

  • order
  • missing items
  • duplicates
  • sorting
  • filtering

6. Select Dropdown

htmlhtml
<select>

    <option>USA</option>

    <option>Canada</option>

    <option>Armenia</option>

</select>

7. Option Element

htmlhtml
<option>USA</option>

Represents one dropdown item.

8. Selected Option

htmlhtml
<option selected>
    Canada
</option>

Default selected value.

9. Disabled Option

htmlhtml
<option disabled>
    Premium Plan
</option>

Cannot be selected.

10. QA Testing for Dropdowns

QA verifies:

  • default selection
  • changing values
  • hidden options
  • disabled options
  • API data
  • keyboard support

11. Tables

Table Structure

htmlhtml
<table>

    <tr>
        <th>Name</th>
        <th>Role</th>
    </tr>

    <tr>
        <td>John</td>
        <td>Admin</td>
    </tr>

</table>

Table Tags

TagPurpose
tabletable container
trrow
thheader cell
tddata cell

12. QA and Tables

QA checks:

  • sorting
  • pagination
  • filtering
  • row count
  • column values
  • dynamic loading