I am working on a webpage and I am trying to use css to change the font sizes and style for my heading. The css is simply not doing anything even though when I put it in vs code it found no errors.
Here is the code:
h1{
color: #FFFFFF;
font-family: "Press Start 2P", "consolas", sans-serif;
}
<h1>welcome to chili chef</h1>
If anyone knows what I did wrong or a fix please tell me.
Thanks
3
Answers
Your problem is that you didn’t connect HTML with CSS
In the code, you have added
color
to#ffffff
, which is for text color working fine (#ffffff
iswhite
)and
font-family
is for font of the text.To change font size, add
font-size
style.did you add external
<link>
tag to your<head>
in your html file?