Introduction To Cascading Style Sheet(CSS).

Introduction To Cascading Style Sheets(CSS).
CSS is a cascading style sheet which is used to describe the document styles in web pages written is HTML, XHTML, XML. 
It is web language that used to add formatting in web pages and application. It is a loose web language which can be written inside the HTML tags. It can be defined internally, externally and inline. It is supported by all famous web browser like Chrome, Mozilla, Opera, Safari and Internet Explorer.
History of CSS.
CSS first version was first released 1996. It was being used since the HTML is developed. It was developed by w3.org, that is responsible for changes the rules in HTML and CSS. Its first version was known as CSS 1.0.
Its second version CSS 2.0 was released in 1998. It Includes new attributes like absolute , fixed and relative positioning.
CSS 3.0 is now used in modern web pages to add styles and formatting the web pages and application. We can clearly see the difference among all CSS versions with this Image which is taken from Wikipedia.

Syntax of CSS.
1.Selector, 2. Property, 3. value.
h1{font-size:20px; }
A selector can have more than one properties.
li { Padding:0px;
margin:0px;
list-style:none;
}
All HTML tags are default in CSS and user define tags are generally known as IDs and Classes.

Defining The Cascading Style Sheets
 
There are three methods of describing CSS.
It can be define internally, externally and inline.
Internally : <style type=text/css> Your code Here </style>
Externally : < link rel="stylesheet" href="style.css">
Inline : <p style="color:blue;">Hello Friends ! </p>.

How To Save CSS.

CSS save like HTML file extension. Its Extension is .css. In post we well learn advance about CSS.   

Post a Comment

If you have any question related to the above post you can comment below

Previous Post Next Post