iwantcoding.com
🔥 Daily 👥 Rooms 🏆 Top Log in Sign up

CSS Reference

A CSS reference is a structured lookup of every property the browser understands. Use it like a dictionary while you're writing CSS.

What a reference page typically lists

FieldExample
Syntaxcolor: <color>
Initial valuecanvastext (system colour)
Applies toAll elements
InheritedYes
AnimatableYes
Computed valueComputed colour

Browse the reference

Tip: The official spec at w3.org/TR/css/ is the ultimate reference — but it's dense. MDN's CSS reference is the friendlier read.

Example

Example
<!DOCTYPE html>
<html>
<head>
<style>
body { font-family: Verdana, sans-serif; }
.box { background: #04AA6D; color: #fff; padding: 20px; border-radius: 6px; }
</style>
</head>
<body>

<h1>CSS Reference</h1>
<div class="box">Edit the CSS on the left, then click Run &raquo;</div>

</body>
</html>
Try it Yourself »

Exercise

A widely-trusted external CSS reference is…

Answer (3 letters):

Test yourself

Q1. A CSS reference is most useful for…
Q2. A trusted external reference is…
Q3. A typical reference entry includes…

Discussion

Loading…