Meta tags (charset and viewport)
A self-closing HTML element placed in <head> that provides metadata about the page, such as character encoding or viewport settings.
What it does: <meta> tags do not have a separate closing tag. The tag ends after the attribute and the closing angle bracket >. <meta> provides metadata about the page and belongs in <head> alongside <title> and stylesheet links. <meta> is self-closing. Writing </meta> is invalid - just write the opening tag with its attributes. Character encoding is set with the charset attribute directly: <meta charset="UTF-8">. The viewport meta tag with width=device-width and initial-scale=1.0 ensures the page displays correctly on mobile screens. HTML tag names must be lowercase. The correct form is <meta charset="UTF-8"> in lowercase.
Common mistakes: <meta> is a self-closing tag - it must not have a closing slash before the tag name. The correct form is <meta charset="UTF-8">, not </meta charset="UTF-8">. "carset" is a misspelling. The correct attribute name is charset, which tells the browser to use Unicode character encoding.
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
<meta>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 →