HTML & CSS Practice

Write, experiment, and see your changes live. No setup required.

Build a profile card. Change the colors, round the corners, and center the card on the page.

Need a hint?

Try display: grid and place-items: center on body. Add border-radius and box-shadow to .card.

6 lines
33 lines

Live preview

Use HTML fragments in the HTML editor and CSS rules in the CSS editor. Preview updates after typing pauses. Scripts and external resources are disabled in the preview. Work stays in this tab until you download it; reloading clears your changes.

How to use the HTML & CSS Practice

  1. Choose a starter exercise or a blank canvas.
  2. Edit the HTML and CSS and watch the live preview update.
  3. Try mobile and tablet widths, then download your page as an HTML file.
Example: <h1 class="hello">Hello!</h1> .hello { color: teal; }

HTML & CSS Practice FAQ

Can I practice without installing anything?

Yes. The editors and preview run in your browser, with starter exercises for profile cards, Flexbox, and responsive grids.

Is my work saved?

Your work stays in the current tab and is cleared when you reload or leave the page. Download the HTML file to keep a copy with your CSS included.

Can I use JavaScript or external resources?

This playground focuses on HTML and CSS. Scripts, external images, fonts, and other network resources are blocked in the preview.