- Joined
- Dec 23, 2013
- Messages
- 191
- Points
- 18
It seems like simple thing but many web design freshers don't know how to include css file into html file.
In the beginning day of my learning web design i was unaware of these things.
In the above code rel means relationship is equal to style sheet.
And the important thing is we should not give wrong path for css file. Here i have created a css folder then i have saved my 'mystyle.css' file then i am pointing that file into this html. If your style sheet will be in your main file only then no need to give any path.
Media is equal to screen means it will adjust to the device screen that may be computer, laptop or mobile. If you put media is equal to all then it it comes under print quality also.
There are many things to know about css but this just a simple fundamental.
In the beginning day of my learning web design i was unaware of these things.
<link rel=''stylesheet" href="css/mystyle.css" media="screen">
In the above code rel means relationship is equal to style sheet.
And the important thing is we should not give wrong path for css file. Here i have created a css folder then i have saved my 'mystyle.css' file then i am pointing that file into this html. If your style sheet will be in your main file only then no need to give any path.
Media is equal to screen means it will adjust to the device screen that may be computer, laptop or mobile. If you put media is equal to all then it it comes under print quality also.
There are many things to know about css but this just a simple fundamental.
Last edited: