» CSS within the page
Started by fire on 12/08/05:
For those who don't know, you can put CSS code inside your HTML page as opposed to doing this:
<link rel="stylesheet" type="text/css" href="style.css">
It works like this:
<style type="text/css">
<!--css code here-->
.body {
background-color: #000000;
font-family: Tahoma;
color: #FFFFFF;
}
</style>
<!--css code here-->
.body {
background-color: #000000;
font-family: Tahoma;
color: #FFFFFF;
}
</style>
Please note that this code goes in between the <head> and </head> tags of the page!