Cascading Style Sheets (CSS) for Web pages

Our HTML documents can be displayed using different output styles using CSS. HTML tags were originally developed to define the content of a document but Styles sheets define HOW HTML elements are to be displayed. All major browsers support Cascading Style Sheets. As a Website designer we can define a style for each HTML element and apply it to as many Web pages as we want. To make a global change, simply change the style, and all elements in the Web are updated automatically.

CSS allows developers to control the style and presentation of multiple Web pages all at once. Style sheets allow style details to be specified in many ways. Styles can be defined inside a single HTML element, inside the element of an HTML page, or in an external CSS file. Even multiple external stylesheets can be referenced inside a single HTML page. An inline style defined in an HTML element has the highest priority, which means that it will skip a style declared inside the tag, in an external style sheet.

Syntax
selector {property: value}

Example
body {color: blue}

2 thoughts on “Cascading Style Sheets (CSS) for Web pages

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s