How to link and run css code by using notepad!? | SoloLearn: Learn to code for FREE!

+4

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

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

9/23/2020 6:15:02 PM

Tøxïç Skíñfíé 😈

39 Answers

New Answer

+11

<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

+6

<head> <link rel="stylesheet" href="stylesheet.css"></link> </head> Aarnav Chaudhary where, stylesheet.css is your CSS file

+6

try this imgbb.com Google it, its for sharing pictures via links.

+6

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😊

+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.

+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...

+4

But why?? Aarnav Chaudhary

+4

share the screenshot if possible?

+4

Sir i am a new learner please also tell me how to reply by mentioning

+4

Aarnav Chaudhary something like this. @personname

+4

3way is there <link rel="stylesheet" type="text/css" href="link.css" /> 2method <html> <head> <style> body{ } </style> 3rd method <body> <div style="background:#000">Hello</div>

+4

not sir sister

+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..😬

+3

<style> .... your css codes here... </style> in html page Aarnav Chaudhary your file path must be wrong.

+3

RKK thankyou sir!

+3

When linking the file... use the exact file path or it wont work

+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.

+3

+3

Hello every one...

+2

Sir i tried both methods using notepad but after the execution result is same!😬