How to include css in html web page?

arronmattwills

New member
Joined
Dec 23, 2013
Messages
323
Points
0
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.

<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:

JoeHamilton

New member
Joined
Aug 29, 2013
Messages
207
Points
0
We can insert the CSS file in HTML web page in three different ways
1. External CSS
2. Internal CSS
3. Inline CSS
For brief information about CSS click on w3schools.com which tell you detail information about it.
 

FreshFeet

New member
Joined
Dec 24, 2013
Messages
16
Points
0
External CSS is very effective for formatting entire web pages of the website which reduce our efforts and time to give style to various elements of the webpage.
 

aframalik

New member
Joined
Jun 23, 2014
Messages
12
Points
0
Make new css style sheet file with dreamweaver create options.

See there is create css style file.
 
Older threads
Replies
1
Views
1,938
Replies
5
Views
2,368
Replies
0
Views
1,660
Replies
5
Views
3,480
Newer threads
Replies
9
Views
3,361
Replies
0
Views
1,651
Replies
0
Views
3,481
Replies
22
Views
7,378
Latest threads
Replies
1
Views
25
Replies
4
Views
29
Replies
2
Views
22
Replies
2
Views
33
Recommended threads
Replies
4
Views
2,374
Replies
9
Views
3,220
Replies
7
Views
3,214
Replies
8
Views
2,640

Referral contests

Referral link for :

Sponsors

Popular tags

You are using an out of date browser. It may not display this or other websites correctly.
You should upgrade or use an alternative browser.

Top