Tuesday, 27 October 2015

CSS

CSS

CSS Syntax


CSS is a style-sheet language that describes the presentation of an HTML (or XML) document.
CSS describes how elements must be rendered on screen, on paper, or in other media.
This tutorial will teach you CSS from basic to advanced.


CSS rule-set consists of a selector and a declaration block:
CSS selector
The selector points to the HTML element you want to style.

The declaration block contains one or more declarations separated by semicolons.

Each declaration includes a CSS property name and a value, separated by a colon.

A CSS declaration always ends with a semicolon, and declaration blocks are surrounded by curly braces.

CSS Comments

Comments are used to explain the code, and may help when you edit the source code at a later date. Comments are ignored by browsers.
A CSS comment starts with /* and ends with */. Comments can also span multiple lines

No comments:

Post a Comment