Abdi1
January 25, 2019, 1:25pm
#1
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.
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
pkusaha
January 26, 2019, 7:53pm
#4
You have just missed the semicolon dude at the end. use ; instead of :
Abdi1
January 26, 2019, 7:58pm
#5
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.
Abdi1
January 27, 2019, 6:33am
#7
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>