Using CSS
To get started, create a file called “style.css”, and then add the following code in your static page:
<link rel="stylesheet" href="style.css">
Now that you’re all set up, let’s just get into styling your webpage!
Go to the style.css file, and add the following code:
body {
background-color: [COLOR];
}
Replace the [COLOR] with the color you want for the background!
Here’s some commonly used colors:
white
, black
, green
, blue
, red
, pink
, teal
, tomato
.
Now, you can add these:
font {
font-family: [FONT];
}
Replace [FONT] with your favorite font!
Here’s a few examples:
Sans serif
, Comic Sans MS
.
You can also replace the “font” word at the beginning with something else:
a, p, h1, h2, h3, h4, h5, h6.
And finally,
Some things you can add to the body {
part:
background-image: url(INSERT-URL-HERE)
font-family: [FONT];
-note: This will change all the fonts of the texts.