Tutorials · 5 guides
HTML & CSS Tutorials
Short how-to guides for the things people look up every day. Each one starts with the quick answer, shows why it works with live examples you can change, and ends with code you can copy.
All tutorials
- How to Center Text in HTML & CSS text-align, flexbox, grid and margin auto, plus vertical centering. Try every method live and copy the code.
- How to Add a Line Break in HTML <br> or a new paragraph, keeping typed line breaks with white-space, and breaking long words and links.
- How to Add Spaces in HTML Why HTML squeezes spaces, and the other space codes, indents, and gaps between elements.
- How to Change Text Color in HTML The color property with names, hex, rgb and hsl. Color one word, style links and check the contrast.
- How to Change Background Color in HTML background-color for the page, a box, table cells and one word, plus gradients and dark mode.
Handy while you learn
- HTML Tags Every tag with a tiny example.
- HTML Entities Codes for spaces, ©, arrows and more.
- Color Picker HEX, RGB and HSL codes and color names.
- HTML Editor Try any example with a live preview.