Academics · Study Skills
Two editors, HTML and CSS, and a live preview that updates as you type. Ten short challenges ask for a color, a centered paragraph, a bordered box, rounded corners, a styled class, a restyled link, a flex row, a centered fixed-width box, a second-level heading with a list and a link. Each is checked against what the browser computed, so any correct way of writing it passes. You can also write your own page and download it.
The first challenge is ready below. The worked example loads three passed challenges and opens the fourth. Saved on this device only.
Loading the playground. If nothing appears, turn on JavaScript.
Academics · Study SkillsOpen to everyone
A selector chooses the elements, a property names what to change and a value says how. In h1 { color: teal; }, h1 is the selector, color is the property and teal is the value. A missing semicolon or a misspelled property makes the browser skip that line without telling you.
Colors can be written as names, hex codes or functions, and sizes as pixels or other units. The checklist reads the value the browser worked out, so teal and #008080 both pass the first challenge.
The preview runs in a sandboxed frame with a content security policy. Scripts do not run, and nothing from the internet loads, so you can paste any markup you like without it reaching out or changing this page.
The page of code in each challenge is made up. Everything you type stays in this browser: the preview cannot load anything from the internet and nothing is sent to Caveat. Support: team@caveatacademic.com.