Codebit Problem Help!


#1

<!DOCTYPE html>
<html>
	<head>
		<link type="text/css" rel="stylesheet" href="stylesheet.css"/>
		<title></title>
	</head>
	<body> <p> things </p>
</body>
</html>

this is css:

p {
color: red;
}

this wouldn't work on my codebit. plz help


#2

Hi, place copy in your HTML as well


#3

oops a glitch srry I will post right code


#4

< !DOCTYPE html>

< head>
< link type="text/css" rel="stylesheet" href="stylesheet.css"/>
< title>< /title>

< body > < p> < body>
< /html>
wont work in my codebit when I apply the css of color red


#5

@dxreeper

When you are coding don't spaces everywhere

Your paragraph tag is not coded correctly ..
To code a paragraph tag you <p> Your paragraph text </p>

Place remove spacing from all the other tags and your body stage is not closed place close it </body>


#6

srry the computer did it I did spaces cuz I couldn't make the code appear


#7

it still wouldn't work


#8

Where are you running this code in codecademy lesson?


#9

no, he is running his code in codebits, everyone can can use codebits, it is just a practice enviroment, you have your own codebits here

@dxreeper, why doesn't it work? Could you post a screenshot? Check what the name of your css file is, if it is main.css, your link should be changed:

<link type="text/css" rel="stylesheet" href="main.css"/>

the href should match the name of the stylesheet

for next time, use one of the two following options to make your code/indent is visible:

select your code and press ctrl + shift + c (or cmd + shift + c if you use a mac)

if this instructions are unclear, you can also insert 3 backticks before and after your code, like so:

```
<p>visible</p>
```

the backtick is located above the tab key on your keyboard