CSS

Syntax

Inline Styles:

<tagname style="Property: Value;">Your content</tagname>

For example <p style="color: blue;">Result</p>


Internal Style Sheet:

<head>
 <style>
  Selector {
   Property: Value;
  }

 </style>
</head>

For example:
<head>
 <style>
  p {
   color: red;
  }

 </style>
</head>

Result: first p tag, second p tag, third p tag.


External Style Sheet:

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


Create CSS File

Click on the image to see it in full size.

×
Start