CSS stands for Cascading Style Sheet.

CSS define various style.  You can use these styles in HTML.

Styles can be defined as  Inline, Internal, External


Attributes are provided with start tag of HTML element.

Method Description Example
Inline Inline style require using style attribute in HTML elements  
Internal In this method style attribute is used in <head> section of HTML  
External This is most common method. All styles are written in seperate CSS file.  


Sample Code

Inline Styles

<p style="color:red;margin-left:10px;">This is a inline style</p>

Internal Style

body {background-color:white;}
p {color:red;}
< /style>
< /head>

External Style Sheet

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

Attributes    Blocks    Color-Values    Colornames    Colors    Comments    CSS    Editors-for-writing-html    Elements    Entities    Formatting-in-HTML    Forms    Head    Headings    HTML-Reference    IFrames    Image    Javascript    Layouts    Links    Options for building websites    Paragraphs    pointers and questions    Symbol-for-Mathmatics    Symbol-for-Punctuations    Symbols    Tables    Whats-new-in-HTML5