CSS Units: %, rem, vh: Coding lesson for kids
In “CSS Units: %, rem, vh”, children learn about width: 50%;, font-size: 1.5rem; and height: 100vh;.
width: 50%;: A PERCENT is relative to the parent element's size — half of whatever contains it.
font-size: 1.5rem;: rem is relative to the page's base font size — scales with accessibility settings, unlike a fixed px.
height: 100vh;: vh is a percentage of the VIEWPORT height — 100vh fills the whole screen top to bottom.
This lesson is part of HTML/CSS in Coding at Pearls Valley Academy — Build and style your first web page.
Each lesson starts with a short narrated, animated explanation, then hands-on practice. A wrong answer gets a gentle hint, never a penalty, and children earn stars and pearls as they go.