Unordered List (<ul>): Bulleted lists where order doesn't matter.
Ordered List (<ol>): Numbered lists used for steps or rankings.
Tables organize data into rows and columns.
| Name | Age |
|---|---|
| Krishna | 25 |
Semantic tags describe their meaning to the browser and SEO, not just their appearance.
Instead of <div> for everything, use:
Block: Takes full width. Starts on a new line (e.g., <h1>, <p>, <div>).
Inline: Takes only necessary width. Stays on the same line (e.g., <span>, <a>, <img>).
Text Inline Inline