Please how do you link your html file to your css | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
0

Please how do you link your html file to your css

1st Feb 2023, 4:17 PM
Douglas Quayson
Douglas Quayson - avatar
6 Answers
+ 3
This documentation also can help you: https://www.w3schools.com/html/html_css.asp In sololearn css written in css tab is already connected, so no need for linking, but if you type code outside of sololearn it is needed. Best practice is to use external css
1st Feb 2023, 4:27 PM
PanicS
PanicS - avatar
+ 2
Link CSS in Html not Html in CSS. You can apply CSS in html in 3 ways 1 - Inline means inside html tags using style attributes 2 - External means by linking external css file in html using href tag 3 - using style tag
1st Feb 2023, 4:21 PM
A͢J
A͢J - avatar
+ 1
The example is: <head> <link href=„example.css“ rel=„stylesheet“> </head> The link tag is used for that inside the head tag of your html file. The href attribute need the path (started where the html file is) to the css file
3rd Feb 2023, 1:55 PM
S3R43o3
S3R43o3 - avatar
+ 1
Using 1. External <link rel="stylesheet" href="style.css"> 2. Internal <style> ......... </style> HAPPY COODING 😊
7th Feb 2023, 1:01 PM
NNN
0
Can you please do an example for me
1st Feb 2023, 4:22 PM
Douglas Quayson
Douglas Quayson - avatar