Workshop › Traffic light › Step 1 of 12
A traffic light that switches by itself, with only HTML and CSS: boxes, circles, flexbox, colors by position, and a CSS animation with a timeline.
We are building a traffic light that switches by itself, with only HTML and CSS. The first piece is its body: an empty box.
```html
<div class="light"></div>
```<div> is a box; class="light" names it so CSS can style it.<div ...> and </div>: the box is empty.Write the line on the empty line inside <body>, then Run.
Skills: HTML structure