+ 9

<link rel="stylesheet" type="text/css" href="mystyle.css"> please how is this used

How can I create mine and how can I use it

7th Nov 2019, 1:20 PM
Chekwube Victor Chukwuemeka
Chekwube Victor Chukwuemeka - avatar
17 Answers
+ 9
The <link> tag is Used to include an external css file and must be inside <head> tag Href attribute is the source of the file I think the "type" attribute is optional in HTML5
8th Nov 2019, 5:43 AM
Darcy Dev
Darcy Dev - avatar
+ 7
Is the css created outside in another page then added with a link 🔗??
7th Nov 2019, 1:21 PM
Chekwube Victor Chukwuemeka
Chekwube Victor Chukwuemeka - avatar
+ 7
As you create Html file same like as css file. Save it with .css extension. As you know there is 3 types to apply css in Html. 1-using inline CSS 2-using internal CSS 3-external CSS When you want to apply too much inline CSS but same style in every Html file then you need to create external file. So there is no need to write same CSS again and again in multiple html pages Better to write in single file and import in multiple html pages.
7th Nov 2019, 1:37 PM
A͢J
A͢J - avatar
+ 4
This is a feature of Html to include external CSS file.
7th Nov 2019, 1:26 PM
A͢J
A͢J - avatar
+ 4
This feature may not be available on solo learn. But it works on mobile as well as in computer. I do not know how to link external css in solo learn. There is a css style sheet in solo learn but that doesn't need link tag. Make sure all your files is in same folder or you know paths of different your css files. Write path of your file in place of my style. css It should work on mobile phones also. But in solo learn. It may not work.
7th Nov 2019, 3:15 PM
🇮🇳Vivek🇮🇳
🇮🇳Vivek🇮🇳 - avatar
+ 4
You can create another file with . css extension. That file will be your external css
7th Nov 2019, 3:17 PM
🇮🇳Vivek🇮🇳
🇮🇳Vivek🇮🇳 - avatar
7th Nov 2019, 3:20 PM
🇮🇳Vivek🇮🇳
🇮🇳Vivek🇮🇳 - avatar
+ 4
It is used to include an external css file. It is used alternatively to the <style> tags😊. Hope it helped
20th Jun 2020, 9:04 AM
Goke Ekundayo
Goke Ekundayo - avatar
+ 4
Create a css file with all the css stuff you need. File.css. go to you html file and write the one you wrote above with the name as the href value and then run your html
20th Jun 2020, 9:06 AM
Goke Ekundayo
Goke Ekundayo - avatar
+ 3
A J how is the external css created and when can it be created
7th Nov 2019, 1:31 PM
Chekwube Victor Chukwuemeka
Chekwube Victor Chukwuemeka - avatar
+ 3
This code is for changing background. It has external css but it doesn't need link tag. As this code is in solo learn but out side of solo learn this css will not work if do not use link tag in your html
7th Nov 2019, 3:23 PM
🇮🇳Vivek🇮🇳
🇮🇳Vivek🇮🇳 - avatar
+ 2
Victor Aries This is used when you apply external CSS to your page. You create a new file with the extension ".css" and link it to your html part. The <link rel="stylesheet" from my understanding, I think means that you're making reference to a stylesheet page. The attribute type="text/css" is there to explain that the stylesheet page you're making reference to is in text The last part (href="mystyle.css") is the path of the file to be used.
8th Nov 2019, 5:25 AM
Hayzeed
+ 2
Make a external css bro like a mystyle.css
8th Nov 2019, 5:44 AM
gilang triatmaja
gilang triatmaja - avatar
+ 2
by copy that code and paste it into the head section of your html file
8th Nov 2019, 6:09 PM
Muhammad Ehsan
Muhammad Ehsan - avatar
+ 2
It's the way to link external css file in your html code, and one thing more, always use standard styles for good practice.
9th Nov 2019, 2:07 AM
Abdul Samad
Abdul Samad - avatar
+ 2
Hello i m a new enter the group so i need help
9th Nov 2019, 12:26 PM
Stane Nutsule
Stane Nutsule - avatar
+ 2
Stane Nutsule What kind of help you need?
9th Nov 2019, 12:41 PM
A͢J
A͢J - avatar