CSSStart
CSSStart
HTML
p{
background: red;
}
Practice!
So how do you think you would implement it to make all your text
blue?
I’ll give you a hint, the element you’ll want to style is
The answer:
body {
color : blue;
}
More CSS Syntax
• You can put in instructions for multiple elements by simply adding another block
of code for the second element under the first
h1{
color: green;
background-color: yellow;
}
h2{
color: green;
background-color: yellow;
}
• You can style more than 2 elements and add more than 2 attributes - you can
have as many or as few as you want!
CSS styles elements of HTML.