Web Technologies
A web page is a conversation between a browser and a server. Understanding the three main layers — structure, presentation, and behaviour — makes the web far less mysterious.
The three layers
HTML describes what content means: headings, paragraphs, lists, and links. CSS controls how that content looks across screen sizes.
JavaScript adds behaviour, such as checking a form or updating a chart. Each layer has a distinct job, and keeping them separate makes pages easier to maintain.
What happens on a request
The browser asks a server for a document, then requests the styles, scripts, and images the document needs. Each item has an address called a URL.
Caching lets the browser reuse files it already has. This is why a changed file sometimes needs a new version marker in its address.
Accessible by construction
Use headings in order, give images useful alt text, and make sure every control can be reached with a keyboard. These are structural choices, not decoration.
Check your page at a narrow width and with a large text size. If content still reads clearly, your layout is doing its job.
Layer and responsibility
| Layer | Responsibility | Example |
|---|---|---|
| HTML | Meaning and structure | <h1> for the main heading |
| CSS | Layout and appearance | Grid, spacing, colours |
| JavaScript | Interaction | Form validation |