Nepedia
Back to Discover
Independent Reader
💻

CSS

technology Maturity 11-13 Next article →

Web pages use special code to look good. This code is called CSS. CSS stands for Cascading Style Sheets.

W3C CSS Snapshot
W3C CSS Snapshot

CSS helps separate content from style. Content is the text and facts. Style is how those things look. CSS picks the colors and fonts. It also decides the layout. This means where parts sit on a screen.

Using CSS makes work much easier. You can put styles in one file. This file is called a style sheet. One style sheet can change many pages at once. If you want all titles to be blue, you change one rule. This is faster than changing every page. It also helps web pages load quickly.

CSS uses rules to work. A rule has two main parts. First is a selector. This tells the computer which part to change. It might pick all headers or one specific box. Next is a declaration block. This part gives the new style. It says things like "color: red."

Håkon Wium Lie
Håkon Wium Lie

CSS works on many devices. It helps phones and big computers. It even helps tools that read text out loud for people.

182 words

Where will your curiosity go next?

Keep exploring at your chosen reading level.

🖼️ Images & Media (3)
File:Håkon Wium Lie.jpg
Håkon Wium Lie.jpg
File:W3C CSS Snapshot.png
W3C CSS Snapshot.png
CSS Standardization - The State of the Web.webm
More to explore

✨ What else?

Related topics you might enjoy

🔬 Go deeper

More advanced topics to explore

🪜 Step back

Simpler topics to build understanding

What is Nepedia?

A free, ad-free encyclopedia for children. Every article is written at five reading levels, so the same page works for a five-year-old and a fifteen-year-old — use the level switcher above to see this one change. No account needed to read.