Css | SoloLearn: Learn to code for FREE!

+5

Css

How can u link css to html without any errors?

4/13/2019 7:00:32 AM

ely

3 Answers

New Answer

+14

https://www.sololearn.com/learn/CSS/1079/ make sure you put css in same folder where is html, if you wont to put css in for example css file than writte ex. <link href="css/custom.css" >

+6

I prefer using external css. Example <head> <link rel="stylesheet" href="style.css"> </head> Also if the css in a directory Ensure u specify the path <link rel="stylesheet" href="directory/style.css">

+6

⏩⏩⏩You can link css with html using link tag . ▶️ <link href= "css file name" or if it is in another folder the path of the file . 🔴🔴 use " / " separate the each directories. ▶️ then use rel attribute inside link tag rel=" stylesheet". ▶️ finally you should use type attribute type = "text/css". ✔I think you don't know basics of html and css you should firstl complete css & html tutorial. 🔽🔽🔽🔽🔽🔽🔽🔽🔽🔽🔽 ✅Then you can cleary know this happen. Hope this will help you. 🌻🌼🌺💮🌸💐🌼🏵🌻