HTML Forms & Tables
Learn how HTML forms collect information from users and how tables organize structured data.
HTML Forms
Forms allow users to enter and submit information. Labels should be associated with their corresponding form controls.
Contact Information
Select & Radio Inputs
HTML provides several controls for allowing users to select information.
Choose Your Color
Favorite Meal
Choose an option above.
Which meals did you enjoy?
No meals selected.
HTML Tables
Tables are designed for displaying structured data in rows and columns.
| Name | Quantity | Price | Amount |
|---|---|---|---|
| Homemade Bread | 2 | $2.79 | $5.58 |
| Almond Milk | 2 | $2.99 | $5.98 |
| Apples | 1 | $3.50 | $3.50 |
| Total | $15.06 | ||
Tables are not for layout
Tables should be used for structured data, such as prices, schedules, statistics and other information that naturally belongs in rows and columns.