Ways to Add CSS to your Website

  1. Introduction
  2. What are Cascading Style Sheets?
  3. Ways to Add CSS to your Website
  4. Ways to Add CSS to your Website: Numbers Two and Three
  5. Two CSS tips.
  6. Resources and further reading


Three ways to employ Cascading Style Sheets on your site.

1) Inline with your HTML

You can paste CSS directly in your html page. Although it does not have to be placed in between the header tags, it usually is. Below is an example that redefines the HTML?s h1 tag:

<head>
<title>Sample</title>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<style type="text/css">
<!--
h1 {
font-family: "Times New Roman", Times, serif;
font-size: 14px; color: #CC00FF;
}
-->
</style>
</head>

The highlighted section is your CSS. Notice that it begins and ends with HTML's <style> tag.


Sean Buscay
www.christian-web-masters.comSean Buscay is on a mission to CREATE, ADVANCE, and EXPOUND faith in JESUS using web technology. He is the owner of Christian-Web-Masters.com .