0
Please how do you link your html file to your css
6 Answers
+ 3
See html and css course already explained there.
See examples:
https://code.sololearn.com/Wgp3ky8fxwYz/?ref=app
https://code.sololearn.com/WNdl1mfLy0eI/?ref=app
https://code.sololearn.com/Wtk64Vf9C9rg/?ref=app
+ 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
+ 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
+ 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
+ 1
Using
1. External
<link rel="stylesheet" href="style.css">
2. Internal
<style>
.........
</style>
HAPPY COODING đ
0
Can you please do an example for me