How can i link my .css to my .html?

  • Thread starter Thread starter John S
  • Start date Start date
J

John S

Guest
I am using a HTML editor, and it wont let me save anything in the folder with the .html documents. here is what i did before, with it all in the same folder:

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

is there a way to extend the href tag to outside the folder it is contained in?
Originally i was doing it all by hand with notepad, but then i got talked into using a free editor called "Top Dawg"... not to sure its worth it though.
 
To change where an address is referring you can use ../ to go back a directory. You should have stuck with notepad, wrting code by hand allows you to change it more, there is more flexibility. Thanks for the thumbs down who ever it was? (It's cause i'm right) lol
 
You can try

<style ="text/css">

YOUR CSS HERE!

</style>

and include that in the <head> section of your html document. This is considered as xhtml where the css is in the html file but you do not need to rename your file to something.xhtml and it will work just fine as something.html

Hope this Helps!!
 
Back
Top