You are applying online for Assistant Programmer. The circular page asks for your name, mobile number, date of birth, district and a photo. You fill the boxes, tick "I declare that the information is true", press Apply, and a second later the screen says "Application received". Nothing in HTML can store a record or send a message, so what actually happened between your click and that reply? And now picture a candidate who cannot see the screen, and who listens to a screen reader read the page aloud. Will the same form make sense to that candidate, or will it say "edit text, edit text, button" and leave them guessing which box wants the mobile number?
This chapter answers both questions. The form is the one place where a visitor sends something to a website instead of only reading it, and it is the favourite practical question of the written paper: "Design the form using HTML." Around it sit the other tags the same papers keep asking for: the semantic tags (<header>, <article> and friends), the media tags, and <canvas> against SVG.
By the end you will be able to write a complete form from memory and say exactly what the browser will send when it is submitted. You will choose the right control for each field, and tell which validation attribute stops a bad value and which one quietly does nothing. You will lay a page out with semantic elements and explain each one in a written answer, name the HTML5 media tags and say how the browser chooses among several <source> files, tell canvas from SVG and draw the same flag with both, and make the page work for a visitor who cannot see it.
Eight parts, from easy to hard. First the journey of a form from the screen to the wire; then the controls, then the buttons and the browser's own checking; then the whole form as an exam answer. After that come semantic layout, media and embedding, canvas and SVG, and last accessibility, which by then you will already have been practising for seven parts.