+ 5

How to link and run css code by using notepad!?

I don't know how to run my css code in my html code.

23rd Sep 2020, 6:15 PM
Tøxïç Skíñfíé 😈
Tøxïç Skíñfíé 😈 - avatar
39 Respostas
+ 12
<link rel="stylesheet" href="style.css" > replace this "style.css" with your css filename. Please utilise Google too (Google is missing you) 😉 edit: SoloLearn Q/A Search bar too
23rd Sep 2020, 6:17 PM
minirkk
minirkk - avatar
+ 8
Hi Aarnav, 1)Make your html code in a separate .html file in a folder 2)Make your css code in a .css file in a folder(same folder preffered for better management) 3)Place this line inside the head tag in .html file <link rel="stylesheet" href="yourfilename.css" 4)Remember to put the full path incase html and css files are in different directories. Hope it helps😊
25th Sep 2020, 5:15 PM
Sanjana Pandey
Sanjana Pandey - avatar
+ 6
<head> <link rel="stylesheet" href="stylesheet.css"></link> </head> Aarnav Chaudhary where, stylesheet.css is your CSS file
23rd Sep 2020, 6:20 PM
Laraib Khan
Laraib Khan - avatar
+ 6
try this imgbb.com Google it, its for sharing pictures via links.
23rd Sep 2020, 6:30 PM
minirkk
minirkk - avatar
+ 5
Hey Aarnav Chaudhary Just u need to use @ .. . . And then SOLOLEARN suggest the name of your friends on the basis of recent records. .. . . U just have to click on that name or person u want.
23rd Sep 2020, 6:32 PM
Laraib Khan
Laraib Khan - avatar
+ 5
You just need to save your code as the extension of HTML file like aa. html Then after saving you may click on the saved file on desktop which will be shown in your browser...
24th Sep 2020, 4:44 AM
The INDIAN
The INDIAN - avatar
+ 4
23rd Sep 2020, 6:24 PM
Laraib Khan
Laraib Khan - avatar
+ 4
share the screenshot if possible?
23rd Sep 2020, 6:26 PM
minirkk
minirkk - avatar
+ 4
Sir i am a new learner please also tell me how to reply by mentioning
23rd Sep 2020, 6:26 PM
Tøxïç Skíñfíé 😈
Tøxïç Skíñfíé 😈 - avatar
+ 4
Aarnav Chaudhary something like this. @personname
23rd Sep 2020, 6:27 PM
minirkk
minirkk - avatar
+ 4
not sir sister
25th Sep 2020, 2:31 PM
KashishAggarwal
KashishAggarwal - avatar
+ 3
Sir i know the both methods internal and external method of using css but i am not able to apply it in my code..😬
23rd Sep 2020, 6:22 PM
Tøxïç Skíñfíé 😈
Tøxïç Skíñfíé 😈 - avatar
+ 3
<style> .... your css codes here... </style> in html page Aarnav Chaudhary your file path must be wrong.
23rd Sep 2020, 6:24 PM
minirkk
minirkk - avatar
+ 3
RKK thankyou sir!
23rd Sep 2020, 6:28 PM
Tøxïç Skíñfíé 😈
Tøxïç Skíñfíé 😈 - avatar
+ 3
When linking the file... use the exact file path or it wont work
24th Sep 2020, 3:06 PM
Chysomm🤩🇳🇬("inActive")
Chysomm🤩🇳🇬("inActive") - avatar
+ 3
First separate your project files into a folder, then create a separate folder for the style sheets in cs. Then encode the css normally by notepad, save it in the folder you just created, then just link in your document html using the following code: <link rel = "stylesheet" href = "/ css / style.css"> For this code to work you need to create the folder (which we mentioned earlier) as: css. So that the browser understands where your style document is saved.
24th Sep 2020, 8:18 PM
Carlos Emanoel
Carlos Emanoel - avatar
+ 3
its ok bro
25th Sep 2020, 2:46 PM
KashishAggarwal
KashishAggarwal - avatar
+ 3
Hello every one...
25th Sep 2020, 5:02 PM
Maria Garlyn Roselyn Aquino
Maria Garlyn Roselyn Aquino - avatar
+ 3
Sanjana Pandey such awesome way to explain.....
25th Sep 2020, 5:27 PM
Laraib Khan
Laraib Khan - avatar
+ 2
Sir i tried both methods using notepad but after the execution result is same!😬
23rd Sep 2020, 6:25 PM
Tøxïç Skíñfíé 😈
Tøxïç Skíñfíé 😈 - avatar