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.
Understanding Meta tags (charset and viewport) in HTML & CSS
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 class and your students practise it interactively.
This module's key terms are also in a printable crossword (Modules 1–12) and word search (Modules 1–23).
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
Student with a class code? Join your class →