CodeFizz

A Free Learn-To-Code Website

CSS Home

CSS Syntax


A 'Basic' CSS Document

<style>
div#hello-world {
margin-left: 50px;
background: pink;
}
p {
color: blue;
}
.small {
font-size: 10px;
}
</style>
<div id="hello-world">Hello world!</div>
<p>Apple banana.</p>
<h1 class="small">I'm small?</h1>
<div>thing</div>
Try it »

Meaning and Usage