Css | SoloLearn: Learn to code for FREE!



How can u link css to html without any errors?

4/13/2019 7:00:32 AM


3 Answers

New Answer


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" >


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">


⏩⏩⏩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. 🌻🌼🌺💮🌸💐🌼🏵🌻