The text-align property
A CSS property that sets how lines of text line up inside an element: left, center or right. Example: text-align: center; centres a heading's text. It styles the text, not the box.
Understanding The text-align property in ACARA Digital Technologies Years 9–10
What it does: The value left is the way to set text to start at the left edge, which is the default for English text. The rule selects the h2 element and the property changes how the text inside it lines up, not where the element itself sits. CSS uses the US spelling center. The word centre is not a valid value, so the browser ignores it. CSS uses a colon between the property and its value, not an equals sign. The property is text-align. There is no font-align property in CSS. Each line of text in the paragraph is centred inside the paragraph's box.
Common mistakes: CSS only accepts the American spelling 'center' as a text-align value. 'centre' is ignored, so the heading stays left-aligned. It should be text-align: center;. A CSS declaration needs a colon between the property and its value. It should be text-align: right;.
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 155–225) and word search (Modules 116–225).
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
text-alignFill in the Blanks
Spot the Error
Student with a class code? Join your class →