Introduction To
Cascading Style Sheet (CSS)
CSS is a styelsheet language that depicts the presentation of a HTML (or XML) record.CSS depicts how components must be rendered on screen, on paper, or in other media.
What is CSS?
- 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 stylesheets are stored in CSS files
Example Syntax:
body {
background-color: lightblue;}
h1 {
color: white;
text-align: center;}
p {
font-family: verdana;
font-size: 20px;}
Why Use CSS?
CSS is utilized to characterize styles for your website pages, including the configuration, design and varieties in presentation for various gadgets and screen sizes.
CSS Solved a Big Problem
HTML was NEVER expected to contain labels for organizing a website page!
HTML was made to depict the substance of a website page, as:
This is a heading
<p>This is a paragraph</p>This is a paragraph.
At the point when labels like , and shading ascribes were added to the HTML 3.2 determination, it began a bad dream for web designers. Advancement of vast sites, where text styles and shading data were added to each and every page, turned into a long and costly process.
To tackle this issue, the World Wide Web Consortium (W3C) made CSS.
CSS expelled the style designing from the HTML page!
CSS Saves a Lot of Work!
The style definitions are regularly spared in outside .css records.
With an outer template document, you can change the look of a whole site by changing only one record!
Click this link: All related to CSS?
Comments
Post a Comment