HTML — structure and content
Tags define what content is.
HTML (HyperText Markup Language) defines the STRUCTURE and CONTENT of a page using tags.
Common tags:
- Headings:
<h1>(most important) to<h6>. - Paragraph:
<p>. - Hyperlink:
<a href="...">link text</a>. - Image:
<img src="..." alt="...">— needs src (file) and alt (description). - Lists:
<ul>/<ol>with<li>items. - Table:
<table>,<tr>(row),<td>(cell). - Containers:
<div>,<header>,<nav>,<footer>for layout structure. - Forms:
<form>,<input>for user data entry.
Tags usually come in pairs: an opening tag and a closing tag (</p>).
Key idea: HTML describes WHAT content is (a heading, a paragraph, a link) — not how it looks. Looks are CSS's job.