All subjects · Information Technology · Unit 2

WIT12 3 hour practical exam on web development with HTML, CSS and JavaScript

Edexcel IAL Information Technology, Unit 2 (AS unit, usually Year 12). 39 lessons so far, in the suggested order.

Practise this unit in the app: instant marking and a fix for every mistake. Free, no email needed to start.

Practise in the app

Lessons in WIT12

  1. HTML document structure: doctype, elements, attributes and the head
    Doctype first, then html (with lang), head (metadata: charset, viewport, title, links, scripts) and body (visible content). Elements are made of tags, content a
  2. Organised HTML syntax and global attributes
    Lower case, indented nesting, double quotes, Boolean attributes without values, no slash on void elements. Global attributes (class, id, style, accesskey, lang,
  3. Block and inline elements and content models
    Block elements start a new line and fill the width; inline elements flow with the text. Content models (flow, sectioning, heading, phrasing, embedded, interacti
  4. Structuring text and lists
    Use headings in order, p for paragraphs, hr for a change of topic, em for stress, strong for importance. ul is unordered, ol is ordered (start, type, reversed),
  5. Hyperlinks: internal, external, email, new tab and anchors
    Internal links use relative paths; external links use full URLs; email uses mailto:; target="_blank" opens a new tab; #id jumps to an element with that id, page
  6. Images on web pages: formats, size, resolution and alt text
    img needs src and alt; use JPEG for photos, PNG for transparency and sharp graphics, GIF for simple animation, SVG for scalable logos; size images in pixels for
  7. HTML tables: rows, cells, headings and merged cells
    table, caption, tr (row), td (data cell), th (header cell), thead, tbody, tfoot; colspan merges across columns, rowspan merges down rows. Use tables for data, n
  8. HTML forms: structure, controls, input types and buttons
    form holds controls; label for = control id; fieldset and legend group controls; name is what data is sent as; radios share a name (one choice), checkboxes are
  9. How forms send data, and HTML form validation
    Submitting sends name=value pairs to the action URL. GET puts them in the URL (visible, length-limited, bookmarkable); POST puts them in the request body (not i
  10. Audio, video and inline frames
    audio and video take controls, autoplay, muted, loop (and poster for video); several source elements give alternative formats and the browser uses the first it
  11. CSS: purpose, inline, internal and external style sheets, and rules
    CSS separates presentation from structure, giving layout control and a consistent design. Inline styles one element, internal styles one page, external styles e
  12. CSS selectors, including attribute selectors
    Type, .class, #id, *, descendant (space), child (>), adjacent sibling (+), general sibling (~), grouping (,). Attribute selectors: [a], [a=v], [a~=v], [a^=v], [
  13. The cascade, inheritance and the CSS box model
    Conflicts are settled by importance, then specificity (inline > id > class > type), then source order (last wins). Text properties inherit; box properties do no
  14. CSS colours, opacity, gradients and length units
    Colours: names, #RRGGBB hex, rgb(r, g, b) from 0 to 255, hsl(hue, saturation%, lightness%); opacity fades the whole element, rgba/hsla only the colour; linear-g
  15. Styling text, fonts, links, lists, tables, forms, images, backgrounds and borders
    Use font-family with a generic fallback, text-align: center (US spelling), link states in the order link, visited, hover, active, list-style-type, border-collap
  16. CSS positioning: normal flow, relative, absolute, fixed, float and display
    static is normal flow; relative offsets but keeps its space; absolute leaves the flow and is placed against the nearest positioned ancestor; fixed is placed aga
  17. Layouts for different screen sizes and responsive design
    Fixed-width layouts use pixels, liquid layouts use percentages, responsive layouts add media queries at breakpoints. Grids, flexbox and frameworks line content
  18. CSS transitions, transforms and cubic-bezier timing
    transition: property duration timing-function delay, on the normal state, animates a change; transform rotates, scales, translates and skews, in 2D or 3D with p
  19. Adding JavaScript to a page: comments, variables, assignment and operators
    Scripts go in an external file (best), a script element, or event attributes; run them after the elements exist. let can change, const cannot; = assigns; + join
  20. Selection in JavaScript: if, else if, else and switch
    if / else if / else checks conditions in order and runs only the first true branch, so order the boundaries carefully. && needs both, || needs either, ! negates
  21. Repetition and iteration: while, do...while, for and for...of
    while checks first (may run zero times); do...while checks after (runs at least once); for counts (start; condition; update); for...of and forEach visit each it
  22. 1D and 2D arrays in JavaScript
    Arrays are zero-indexed: the first item is [0] and the last is [length - 1]. push and pop work at the end, unshift at the start; indexOf, includes, join, sort,
  23. Subprograms (functions) and object orientation in JavaScript
    function name(parameters) { ... return value; } is called with arguments. Local variables exist only inside their function. Objects hold properties and methods;
  24. The Document Object Model (DOM): finding and changing page elements
    The DOM is a tree of objects built from the HTML. Find elements with getElementById, querySelector and querySelectorAll; change textContent, innerHTML, value, s
  25. Events: UI, keyboard, mouse, focus, blur and form events
    An event handler is a function that runs when an event happens; attach it with addEventListener("event", functionName). UI: load, resize, scroll; keyboard: keyd
  26. Regular expressions for validation
    A regex is a pattern between slashes; test() returns true or false. ^ and $ anchor the whole string. [A-Z], [a-z], [0-9] (or \d) match one character; {n}, {n,m}
  27. Validating form data with JavaScript
    Presence, length, range, type, format (regex) and lookup checks. Read values into variables, convert numbers, collect messages and display them, use preventDefa
  28. Page components: slideshows, modal boxes, filters, sorting, pop-ups and tabs
    Components combine HTML content, CSS classes that show or hide, and JavaScript event handlers. Slideshows change an index and src (use % to wrap), modals toggle
  29. Error handling and debugging JavaScript
    Syntax errors stop the script running; runtime errors stop it part way with an error such as ReferenceError or TypeError; logic errors give wrong results silent
  30. Designing web pages: wireframes, mock-ups, style guides and prototypes
    Wireframe = layout sketch; mock-up = static full-colour design; style guide = rules for colours, fonts and components; prototype = working model for user testin
  31. Web typography and design principles: hierarchy, flow, colour, balance and contrast
    Web-safe fonts are on almost every device; embedded web fonts (@font-face) give a unique look at the cost of download time and licensing. Visual hierarchy, flow
  32. Accessibility and the Web Content Accessibility Guidelines (WCAG)
    WCAG (W3C, version 2.2) has four principles: Perceivable, Operable, Understandable, Robust, and levels A, AA, AAA. Key needs: alt text, captions, semantic struc
  33. Intuitive navigation: horizontal, vertical, dropdown, breadcrumb and button groups
    Horizontal and vertical menus list the main sections; dropdowns reveal sub-pages; breadcrumbs show the path from the home page; button groups join related actio
  34. Testing web pages: cross-browser, functionality, usability, code validation and developer tools
    Cross-browser testing checks the page in different browsers and devices; functionality testing checks features against expected results; usability testing watch
  35. Semantic markup: structural elements, div and span
    Semantic elements say what content is, which helps screen readers (landmarks), browsers, search engines and developers. header, nav, main, section, article, asi
  36. Semantic text, figures and search engine optimisation
    strong = importance, em = emphasis, q and blockquote = quotations, abbr = abbreviations, cite = titles of works, dfn = definitions, address = contact details, m
  37. WAI-ARIA: roles, states, live regions and keyboard navigation
    WAI-ARIA adds roles (what it is), states and properties (aria-expanded, aria-label, aria-current, aria-invalid), live regions (aria-live) for dynamic content, a
  38. How the Unit 2 practical exam works: tasks, files, evidence and timing
    3 hours, 80 marks, all questions, a plain text editor and browser, no internet. About 2.25 minutes per mark. Save with the exact file names in the question fold
  39. How Unit 2 is marked: points, levels and the extended written answer
    Point marks reward each required feature exactly; levels reward layout, CSS, functionality, interface design and notation (comments, names, indentation). The 9-

Next exams for WIT12

From Pearson's final timetables. All exam dates. Always confirm your entries with your exams officer.