Style your page like a pro pirate designer!
CSS stands for Cascading Style Sheets. It controls how your HTML looks โ colors, fonts, layout, and more!
selector {
property: value;
}
Example:
h1 {
color: red;
text-align: center;
}
<p style="color: blue;">Hello</p>
<style>
tag in the <head>
.css
file and a <link>
tag.class
, #id
font-family
, font-size
, font-weight
color
, text-align
, text-decoration
, line-height
margin
, padding
, border
background-color
, background-image
block
, inline
, inline-block
, none
static
, relative
, absolute
, fixed
The following topics are explained in detail in separate lessons: