HTML & CSS Masterclass Tutorial

Comprehensive guide to modern HTML and CSS development.

Lists & Tables

Lists & Tables

Lists

HTML provides three types of lists:

  • Unordered List (<ul>): Bulleted list.
  • Ordered List (<ol>): Numbered list.
  • Description List (<dl>): List of terms and descriptions.

Inside <ul> and <ol>, you use <li> (List Item) tags.

Tables

Tables (<table>) are used to display tabular data (rows and columns). Key table elements:

  • <tr>: Table Row
  • <th>: Table Header (bold, centered by default)
  • <td>: Table Data (standard cell)

Try It Yourself

Edit the code below and click Run to see the result live.

Source Code
Result
Topics