Programming words

What is CSS?

CSS is how the page looks. Color, size, space, and layout live here. The words themselves stay in HTML.

  • p { color: #111 } changes the paragraph color.
  • The same rule can apply in many places.
  • A phone and a wide screen can have different layouts.

HTML says the words. CSS says their color and place. body { margin: 0 } removes the page's outer gap. Without CSS the page opens as black text on a white background.

Tool for this topic

Related guides

About this tool

CSS is how the page looks. Color, size, space, and layout live here, while the words themselves stay in HTML. A rule like changing the paragraph color can apply in many places across the document. It separates content structure from visual presentation.

People need this tool when designing web pages to control layout and appearance. A phone and a wide screen can have different layouts using proper rules. It removes outer gaps and formats the text so pages open as more than just black text on a white background.

How to use it

  1. Link the stylesheet to your HTML document.
  2. Select the HTML element you want to target.
  3. Define visual properties inside curly brackets.
  4. Apply the rules across multiple pages or elements.

Common uses

Frequently asked questions

What is CSS?

CSS is how the page looks. Color, size, space, and layout live here, while the words stay in HTML.

How does it differ from HTML?

HTML says the words and structure, whereas CSS says their color, space, and place on the screen.

What happens without CSS?

Without CSS, the page opens as plain black text on a white background without any custom layout.