CSS 3 Tutorial
CSS 3 Tutorial
What is CSS?
CSS is short for Cascading Style Sheets, and is the preferred way for setting the look and
feel of a website. The style sheets define the color, size and position of text and other
HTML tags, while the HTML files define the content and how it is organized.
Using Styles
1. An external CSS file
<head>
<link rel="stylesheet" type="text/css" href="style.css" title="style">
</head>
2. Within the html header
<head>
<style type="text/css">
h1 {
color:red;
}
</style>
</head>
3. Inline in the HTML
width: 400px;
height: 100%;
margin: 5px;
margin-top: 1px;
padding: 5px;
padding-top: 1px;
CSS Lists
list-style: none;