HTML,CSS linking problem

Hellow campers,

Am working on rebuilding my tribute page but am having issues in linking CSS and HTMLexternally and this is my code

HTML CODES

<!DOCTYPE html>
<html>
<head>
  <link rel="stylesheet" href="stylesheet.css" type="text/css">
  <link href="https://fonts.googleapis.com/css?family=Lobster" rel="stylesheet" type="text/css">
  </head>
  <body>
    <div id="main">

CSS CODES to test if it works

body{
  background-color: blue:
}

any help will be appreciated
Thank you in advance.

my html codes

A CSS property-value does not end with : (colon) it ends with ; (semicolon);.Your code should be like this

body{
background-color:blue;
}
2 Likes

You have just missed the semicolon dude at the end. use ; instead of :

very true thank you guys i even stop using editor and went for code pen

If you are a student, give PHPStorm a go. Amazing IDE it’s the one I use all day. In addition webstorm is a good but more basic version of it.

Atom was what I used to use before and it was a decent editor which is free.

i will give it a try.Ihave never used it before my favourite editor is atom and VS

you can delete the css link and it should work (if you are using codepen.io)
if not, then wrap the css stuff in a <style> tag.
like this:
<style>
//css stuff
</style>