Go Back

HTML Section 3

Tables

Element Name Use
<table> Used for displaying tabular data.
<td> Defines a cell in the table (table data).
<tr> Defines a row of cells in the table.
<th> Defines a header cell.
<thead>, <tbody>, <tfoot> Used to organize the table semantically. Helps with structure but not necessary for rendering.
colspan / rowspan Attributes that allow a cell to span multiple columns or rows.

Forms

The <form> element is used to collect user input.

Important Form Attributes

Common Form Elements

The name attribute is used to reference each input’s value when the form is submitted.

You can add client-side validation using attributes like required, minlength, maxlength, etc.

Some input types (like email or url) come with built-in validation.

Next: Section 4