Web Technologies Workbench

Web technologies: HTML, CSS and JavaScript

Everything OCR A Level H446 topic 1.3.4 expects you to read and write: the structure of a page, how it is styled, how JavaScript changes it in the browser, and what runs on the client versus the server. Edit the code and the mini page on the right responds.

HTML: structure and content

Tags mark up what each part of the page is: a heading, a paragraph, an image, a form. Attributes such as id and class label elements so CSS and JavaScript can find them.

CSS: appearance

Rules made of a selector and properties say how elements look: colour, size, font, borders. Kept in a <style> block or an external file linked with <link>.

JavaScript: behaviour

Code that runs in the browser (client-side). It reads what the user typed, does a calculation and writes the result back into the page through the DOM: document.getElementById("id").

The source

index.html

      
styles.css (linked from the head)

    

The page the browser shows

Click anything in the page to see the HTML that produced it, the CSS rules that style it, and how JavaScript would reach it.

file:///index.html
Exam tips and common mistakes