Content: Tables & Forms (Inputs, Buttons, Labels)
1. Tables in HTML
Tables are used to organize data in rows and columns.
Tags:
<table> → defines a table
<tr> → table row
<th> → table header (bold, centered by default)
<td> → table data cell
2. Forms in HTML
Forms allow users to enter and submit information.
Key Elements:
<form> → defines the form (with action and method)
<input> → fields (text, email, password, checkbox, radio, etc.)
<label> → describes input fields (improves accessibility)
<button> → clickable button (submit, reset, or custom actions)
3. Form Input Types
text → single-line text input
email → email validation input
password → masked input for passwords
number → numeric input
checkbox → multiple selections
radio → single choice
file → file upload
Summary
Tables: organize data with <table>, <tr>, <th>, <td>.
Forms: collect user input with <form>, <input>, <label>, <button>.
Inputs have different types (text, email, password, radio, checkbox, file, etc.).
<label> improves user accessibility and links text to inputs.
Tables display data; forms collect it for processing.