Your browser (Internet Explorer 6) is out of date. It has known security flaws and may not display all features of this and other websites. Learn how to update your browser.
X

How to Put CSS Into Your Site

1st Method (put the CSS into a .css file)

<html>
<head>

Copy the code below and put inside the head
Make a file style.css and put all your CSS Styles in that 
file or rename it as you like

<link rel="stylesheet" href="style.css" type="text/css" />

</head>

2nd Method (put the CSS into the head section of the page)

<html>
<head>

<style>

.style { property: value; }
.style { property: value; }

</style>

</head>
Simply put the CSS Codes between the <style> </style> inside the Head section

This method is also used to override a certain style on a particular page. For example, you want to make the H1 Heading a different color only on this page, then you can use this method and just do a H1 style with a different colour between the <style> </style>


3rd Method (put the CSS into the HTML Element directly)

<p style="color:red;">This is a paragraph that is styled red colour</p>;

This can also be used to override a certain style on a certain HTML element like the example above, to change one paragraph to red colour.



Leave a comment  

name*

email*

website

Submit comment