HTML Basics: Structure and Content
What HTML Does
Structure first
HTML stands for HyperText Markup Language. It gives a page structure by marking up headings, paragraphs, links, images, lists, and other content.
A tiny example
A page often begins with a document type, then an html element containing head and body. The head stores metadata, and the body contains visible content.
Common HTML elements
h1 to h6paimgul / olliUse semantic HTML
Semantic HTML means choosing elements that describe meaning, not just appearance. For example, use button for buttons and nav for navigation.
Content vs meaning
| Element | Typical purpose |
|---|---|
h1 | Main page title |
p | Body text |
nav | Navigation links |
main | Primary content |
footer | Bottom page information |
What does HTML mainly define?
HTML provides the structure and content of a web page.
Correct answer: Page structure and content
What does the body element contain?
The body holds what users see in the browser window.
Correct answer: The visible content of the web page.
Which element is best for the main heading of a page?
h1 is typically used for the primary heading.
Correct answer: h1