Linking your styles to the webpage [#1] 02-27-2013, 05:32 PM
#1
Cascading Style Sheets the Basics.
Hello everyone,
I like to think that I'm pretty handy when it comes to web development, I'm not the most talented of designers, however my abilities are considering pretty good.
So in this tutorial, I will be teaching you how to link your styles to your webpage.[/size]
So first off all, there are two ways you can link your CSS to a HTML/PHP document. The first way would be to just use the following tags by inserting them within the "<head>" tags.
Code:
<style>
---- Styles go here ----
</style>That is the easiest way, or you could link a external style sheet to your web page document, you can do this, buy inserting the following code within your '<head>' tags aswell:
Code:
<link rel="stylesheet" type="text/css" href="SHEET.CSS">You would then make a CSS sheet in the same directory as your web page file.
An example of what these would look like would be the following:
Code:
<head>
<title>First Method</title>
<style>
body {
font-family: verdana;
}
</style>
</head>OR
Code:
<head>
<title>Second Method</title>
<link rel="stylesheet" type="text/css" href="MYCSSDOCUMENT.CSS">
</head>The second option is a lot more cleaner, however the first is more efficient for making small web designs.
I will be introducing loads more daily Mini-CSS tutorials over the next weeks.
Hope you liked the tutorial, it's very simple, however it should help you on your journey to becoming a web designer.




![[+]](https://sinister.li/images/modern/collapse_collapsed.png)


