Adding a stylesheet to a web page.

Damien

Seasoned Veteran
Apr 29, 2007
3,047
0
71
27
FP$
6
Most people today, use a CSS stylesheet, you may or may not know much about stylesheets, we use them, they have all the information so to speak on the frame work of the website, I will teach you more about how to code in css soon.

STEP 1:

First make a new document called stylesheet.css

STEP 2:

Then go to your index.html page and add this code in to the head section.

Code:
<link rel="stylesheet" type="text/css" href="stylesheet.css" />
As you can see its quite simple, once you have done this you have linked a stylesheet to your web page.

Just to show you how this should look on your index page this is an example of what you should have to start with.

Code:
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<link rel="stylesheet" type="text/css" href="stylesheet.css" />
<title>Untitled Document</title>
</head>

<body>

</body>
Well that's it for now, please feel free to comment and let me know how I can improve this tutorial.

Thanks for reading.
Dark Evil
 

Paul DEN

New Arrival
Apr 17, 2018
8
0
1
25
FP$
72
include in <head> tag
<link rel="stylesheet" type="text/css" href="stylesheet.css" />
</head> let me know if any problem again