| 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. |
The <form> element is used to collect user input.
GET or POST).placeholder for hints.for attribute (must match input’s id).type attribute.checked to make it selected by default.name value). The value is sent when submitted.selected for the default choice.min, max, and step for range inputs.rows and cols attributes to control size.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.