Fundamentals
How a request becomes a page, and what makes the page accessible and safe
Computer Science | Undergraduate (Level 4) | December 2026
WHAT IS INSIDE
1. The request-response cycle
2. HTML: structure and accessibility
3. CSS: the cascade and layout
4. JavaScript, the DOM and security
Exam question patterns
Glossary of exam-ready definitions
1. The request-response cycle
A browser resolves a URL to an IP address through DNS, opens a TCP connection (with TLS for
HTTPS), and sends an HTTP request with a method, path, headers and optional body. The server
responds with a status code, headers and body. The status classes are worth memorising: 2xx success,
3xx redirection, 4xx client error, 5xx server error. GET is safe and idempotent, POST creates and is
neither, PUT replaces and is idempotent, PATCH amends, DELETE removes.
Cookies carry state over a stateless protocol; HTTP/2 multiplexes many requests over one connection
and HTTP/3 runs over QUIC. Caching is decided by headers such as Cache-Control, ETag and
Last-Modified, and understanding it explains most 'why am I seeing an old version' questions. The
critical rendering path - HTML parsed into the DOM, CSS into the CSSOM, combined into the
render tree, then layout and paint - determines what blocks first paint.
• Idempotent - repeating the request has the same effect; GET, PUT and DELETE qualify, POST does
not.
• Same-origin policy - a page may read only resources from the same scheme, host and port.
• CORS - controlled relaxation of the same-origin policy using response headers.
• Render-blocking - stylesheets and synchronous scripts delay first paint; defer or load asynchronously.
2. HTML: structure and accessibility
HTML describes meaning, not appearance. A semantic document uses header, nav, main, article,
section and footer rather than generic containers, which helps assistive technology, search engines and
future maintainers. Headings form a hierarchy: one h1 per page and no skipped levels. Lists, tables and
forms each have elements that carry the meaning; a table is for tabular data, never for layout.
Accessibility follows the WCAG principles - perceivable, operable, understandable, robust. In practice
that means text alternatives on images, labels tied to inputs, sufficient colour contrast, keyboard
operability, visible focus and correct landmarks. ARIA attributes can add semantics but the first rule of
ARIA is not to use it when a native element already carries the meaning. Forms need label for,
appropriate input type for mobile keyboards, and error messages announced to screen readers.
• Alt text - describe purpose, not appearance; empty alt for decorative images.
• Form validation - client-side for usability, server-side for security.
Web Development: HTTP, HTML, CSS and JavaScript Fundamentals Page 1 of 3