CSS not working on sublime text!

Hi I’m currently having problems making CSS work in Sublime Text. So far HTML works but not the CSS. Here is the code that i’ve inputted:

<!DOCTYPE html>
<html>
<head>
	<title>First Web Page</title>
	<style>
	body{
		background: f4f4f4;
	}
</style>
</head>
<body>
	<header><h1>The Best Web Page!</h1></header>
	<p>Hello this is the first line</p>

</body>
</html>

What exactly is it that’s going wrong? Would be great if anyone could help. Cheers!

If you are using hexcodes for color, it should start with a # symbol,

The background color property should look like this,

background: #f4f4f4;

Note: background is a short hand property

1 Like

Сравнение содержимого двух файлов в Sublime Text
http://q-answer.ru/questions/sravnenie-soderzhimogo-dvuh-faylov-v-sublime-text-11822.html