OCR H446 · 1.3.4 Web technologies
Web Challenges
20 short, guided HTML, CSS and JavaScript tasks that mirror what OCR A-level asks you to write: fill in the gaps, build to a spec, or fix the bug, then get instant marking. Every task stays inside the OCR Appendix 5d construct set.
☰ Browse by Topic
JavaScript
Making a page do something: functions and parameters, conditions, loops over arrays, form validation and changing the page through the DOM.
Delivery-charge function
An online shop calculates a delivery charge. The base charge is 3.50 . Orders going outside the UK add a surcharge of 6.
Grade lookup
A results page turns a band letter into a message. Write the function showGrade(band) that uses a switch statement: "A"
Validate the age box
A form should let people register only if they are 18 or over . The validation function has a logic bug : it currently u
Mark the quiz
A spelling-quiz app marks a learner's answers. The function markQuiz(given, correct) is given two arrays of the same len
Competition age check
A coding competition is open to entrants aged 13 to 19 inclusive (so 13 and 19 both count). Complete the function isElig
Open or closed?
A café website shows whether it is open. Write the function showStatus(hour) using an if/else statement so that: when ho
Reveal a message on click
A festival page has a button that should reveal a message when clicked. In js/script.js , write a function called reveal