0
External links not working?
I am trying to work with html and css using external links. I've looked at my code and it looks right but the paragraphs will not come out with a gray background. not sure what I'm doing wrong.
8 Respuestas
+ 3
are you sure the syntax and everything is correct? like :
<link rel="stylesheet" href="style.css" />
+ 1
I have this written:
<LINK REL="stylesheet" HREF="example.css"/>
This is in my head section
+ 1
Could be a directory issue, try adding ../example.css if your css directory is up one..
+ 1
HTML code:
<HTML>
<HEAD>
<LINK REL="stylesheet" HREF="example.css"/>
</HEAD>
<P>This is my first paragraph.</P>
<P>This is my second paragraph.</P>
</BODY>
</HTML>
CSS syntax:
P {
color: white;
background-color: gray;
}
+ 1
My css file is in the same folder as my html
Sorry. on my laptop I do have an opening body tag
0
So uppercase html code is a no go? Thank you for the tip. I also posted the css code I was given to use.
0
Made all of the p's lowercase in html and css and still isn't coming out right lol
0
I did lol
I checked and even changed the file name and the name in the code. Did not work. tried adding the type attribute and didn't work either. How did you enter the code into the playground?