0

How to attach CSS in HTML

It's quite opposed to handle

15th Feb 2022, 2:39 PM
Karan Rajbanshi
Karan Rajbanshi - avatar
5 Answers
+ 2
Solution 1 <html> <head> <style>your css...</style> </head> </html> Solution 2 <html> <head> <link href="/path/to/css/file.css" rel="stylesheet"> </head> </html>
15th Feb 2022, 2:44 PM
Geoffrey L
Geoffrey L - avatar
0
Manav Roy is right, that inline technic is specially usefull if you have the (no) chance to work with an archaic software which doesn't provide a full access to HTML/CSS.
15th Feb 2022, 4:23 PM
Geoffrey L
Geoffrey L - avatar
0
There are 3 ways to include CSS in html : 1) Internal CSS 2) External CSS 3 )Inline CSS I would suggest you must use external CSS cuz our code is looking clearly. Hope this was helpful
16th Feb 2022, 6:30 PM
Numan
Numan - avatar