Yahoo Answers is shutting down on May 4th, 2021 (Eastern Time) and beginning April 20th, 2021 (Eastern Time) the Yahoo Answers website will be in read-only mode. There will be no changes to other Yahoo properties or services, or your Yahoo account. You can find more information about the Yahoo Answers shutdown and how to download your data on this help page.
Trending News
How can i code an external style sheet to link to a html?
I have linked my external style sheet to my html page with the following code:
<link rel="stylesheet" type="text/css" href="css/mystyles.css" />
But i dont know what code to enter to follow this code to make the current page refer back to the mystyle.css to grab the informatino for the background,etc. from.
I have linked my external style sheet to my html page with the following code:
<link rel="stylesheet" type="text/css" href="css/mystyles.css" />
But i dont know what code to enter to follow this code to make the current page refer back to the mystyle.css to grab the informatino for the background,etc. from because i will be using one css to link information to 4 pages rather than one
4 Answers
- Anonymous1 decade agoFavorite Answer
Depending on the relationship your pages will have to the CSS file in the "css" folder, that path should work ok with that relative path. You may have to change it as your site grows and you add more folders/files.
Might want to do a favicon, too.
Making a favicon:
Any one of the below sites will help you make your favicon and explain how to get it to work.
http://www.chami.com/tips/internet/110599I.html
http://www.rw-designer.com/online_icon_maker.php
http://www.html-kit.com/favicon/
http://www.chami.com/html-kit/services/favicon/
http://tools.dynamicdrive.com/favicon/
http://www.degraeve.com/favicon/
Validator:
http://www.html-kit.com/favicon/validator/
Ron
- 1 decade ago
It is better to indicate file locations absolutely starting from root folder "/"
So, you can use:
<link rel="stylesheet" type="text/css" href="/css/mystyles.css" />
Note that I have changed href to "/css/mystyles.css" instead of "css/mystyles.css"
Now you can upload your mystyles.css file into the css folder at your website.
Moreover, the above line should be between <head> and </head> portion of your html files.
- Anonymous1 decade ago
If you put that link in your page's head section, and you upload the mystyles.css file to a directory named css, your page should automatically use the styles specified.
- mentionLv 45 years ago
write a code decrease than between your head tag(open-close) <hyperlink href="default.css" rel="stylesheet" variety="textual content/css" /> and to apply it on some html tags use : <div identity="header"> thats it...

