The document skeleton (DOCTYPE, html, head, body)
The declaration that must appear on the very first line of every HTML file, telling the browser the document uses modern HTML.
What it does: <head> contains information about the page such as its title and stylesheets, none of which appears in the browser window. The <html> tag is the outermost container. Both <head> and <body> are nested directly inside it. <!DOCTYPE html> must be the very first line - it tells the browser this is a modern HTML document. The exclamation mark before DOCTYPE is required. <DOCTYPE html> without it is not a valid declaration. Headings, paragraphs, images, and links all go inside <body>, the visible section of the skeleton.
Common mistakes: The DOCTYPE declaration must start with an exclamation mark: <!DOCTYPE html>. Writing <DOCTYPE html> is missing the ! and is invalid. The <html> opening tag is missing its closing angle bracket >. It should be <html>, not <html without the >.
Free printable worksheet with full answer key — or add this module to a journey and assign it to your class.
Take this worksheet further — free with Cloodit
Each concept is reinforced from every angle — learned, then applied, then tested.
Cloodit turns curriculum-aligned coding content into journeys students work through one biome at a time.
Over 100 of them, across seven natural biomes.
Turns their work into revision material ready for Flash Cards and Exam study.
Live, competitive practice for the start of the lesson or a teacher-led lesson finisher.
Honour your top performers, or encourage a student who's trying hard — ready to print in seconds.
Quick Questions
Match the Pairs
Key Term
<!DOCTYPE html>Fill in the Blanks
Spot the Error
Create a free class, add this module to a journey, and track who's stuck.
Create a free teacher account →No credit card. No setup fee. Make a class and invite students in under three minutes.
Practice this topic interactively, track progress, and unlock badges.
Start Learning Free →