Code Arranger — HTML & CSS

Assemble UI from code fragments: 20 levels pairing HTML with the right CSS. An HTML and CSS combo game that sharpens your frontend intuition.

What you learn in this game

HTML consists of tags arranged in sequence. The heading tag (<h1>) is used for a title, and <p> for a paragraph.

The <a> tag can wrap other elements including an image, so the image becomes clickable.

The <style> tag holds CSS rules and is usually placed before the HTML content so the style is applied when the page loads.

A @media query allows different CSS for different screen sizes. The base rule is written first, then overridden inside the media query.

What the levels ask

  1. Arrange these HTML lines into a page with a heading and a paragraph.
  2. Arrange these code lines into a valid HTML list: Apel, Jeruk, then Mangga.
  3. Arrange this code into a link that contains an image.
  4. Arrange the article structure: the main heading, a subheading + its content, then a sub-subheading + its content.
  5. Arrange a simple login form: the username first, then the password, the button at the end.
  6. Arrange the HTML with the <style> tag in the right place. The rules follow the order of the content: h1 first, then p.
  7. Arrange the CSS box model rules from the outside in.
  8. Arrange the CSS flexbox for a horizontal layout: display: flex first, then justify-content, then align-items.
  9. Arrange the CSS with a media query for responsive design.
  10. Arrange the CSS Grid for a 2-column layout: display first, then the columns, then the gap.
  11. Arrange a valid HTML table. Watch out, there's a wrong line.
  12. Arrange a semantic navigation: Beranda, then Tentang. Drop the lines you don't need.

And more, 20 levels in all.