Sign in to follow this  
up in flames

[web] Linking Style Sheets to pages for re-use

Recommended Posts

up in flames    122
I am trying to make a page for me and some friends. I have a little experience with HTML but here recently I have been trying to learn how to use CSS with my pages. I have been using a website to help me along with this, but it doesn't seem to have anything else on how to link a CSS to your page. I was using a line of code to link the page that looked like this: <link rel=stylesheet href:"" type="text/css"> i put this line of code in between the <head> and </head> tags, yet there was no change in my page, it still looks bland... anyone know what I can do to fix this problem, or atlest get my style sheet to link with my page?

Share this post

Link to post
Share on other sites
Mathachew    352
Your href attribute is followed by : Change this to = like rel and type. Also, throw http:// in front of the www

See if this helps any.

Edit: Also, if the file exists on the same server as the HTML file, then you should use relative paths. For instance, if you had a folder named "css" ( and you have your HTML files in the web root folder (, then you would link the file like this:

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

Link Tag
CSS Tutorials

Share this post

Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

Sign in to follow this