|
CSS is a style sheet language used to describe the presentation of a document written in a markup language.
The common application is to style web pages written in HTML and XHTML.
CSS is the separation of document content written in HTML from document presentation, including elements such as the layout, colors, and fonts.
Cascading Style Sheets provide more flexibility and control in the specification of presentation characteristics, enable multiple pages to share formatting, and reduce complexity and repetition in the structural content.
Cascading Style Sheets (css) style information can be either attached as a separate document or embedded in the HTML document.
CSS consists of a list of rules. Each rule or rule-set consists of one or more selectors and a declaration block.
The declaration-block consists of a list of declarations in braces. Each declaration itself consists of a property, a colon (:), and semi-colon (;)
External Style Sheets can be save time and lot of work.It stored in CSS files.
css files are saved in the extension of .css
The CSS has two main parts: a selector, and declarations.
Example:
h1 {color:blue;text-align:left}
h1 -- selector
text-align -- declarations
CSS Comments:
comments begins with /* and ends with */ |