+ 2

link css file to html file

Hello The Coding World : Two questions : 1) I can't link my html file to my css file ! Is it possible to put both html and css file in one file ? (without using css tag embedded in html tag) ? I succeed to edit my html file (not on the web) but when I want link it to css and edit html with css , I still have my html page . Which link do I have to choose ? <link type="text/css" rel="stylesheet" href="stylesheet.css"/> <link type="text/css" rel="stylesheet" href="../../stylesheet.css"/> <link type="text/css" rel="stylesheet" href="directory/filename.css"/> <link type="text/css" rel="stylesheet" href="C:/users/documents/username/web/stylesheet.css"/> 2) To edit on the web , do you need to pay ? or is it free ? domain name , server ... Am I right ? thanks a lot for your help ! hagd !

15th Mar 2018, 10:17 AM
S. Kaouche
S. Kaouche - avatar
4 ответов
+ 5
if u will use the 4th link to connect (link you write on question) that will work.
15th Mar 2018, 11:33 AM
Bug Slayer
+ 2
If your css file is on the same folder as your html file : <link rel="stylesheet" href="filename.css"/> If it is in any other folder : <link rel="stylesheet" href="filelocation/filename.css/> If you want to make yoyr webpage available to the general public through a domain of your own , you have to pay. Payment is generally done for a period of one year or so. You can edit without giving extra charges.
15th Mar 2018, 10:31 AM
cHiRaG GhOsH
cHiRaG GhOsH - avatar
+ 1
you can use ddns as domain name and your personal computer as server for FREE dyn.com
15th Mar 2018, 10:56 AM
caheamt
caheamt - avatar
0
Thanks a lot for your reply ! How to answer individually ? Do you have to go to each profile ? thanks
24th Mar 2018, 8:32 PM
S. Kaouche
S. Kaouche - avatar