Cascading Style Sheets
Cascading Style Sheets
Cascading Style Sheets
Introduction
CSS stands for Cascading Style Sheets
CSS describes how HTML elements are to be
displayed on screen, paper, or in other media
CSS saves a lot of work. It can control the
layout of multiple Web pages all at once
External Style Sheets are stored in CSS files
CSS Syntax
A CSS rule set consists of a selector and a declaration block:
In the example below, all <p> elements with class="center" will be center-
aligned:
CSS - How to Insert in HTML Page
There are three ways of inserting a style sheet:
External style sheet
Internal style sheet
Inline style