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 file.
History of CSS
CSS is one of three cornerstone technologies used on the web (the other two are HTML and JavaScript). CSS stands for Cascading Style
Sheets – the clues are really in the words 'cascading' and 'style' with cascading describing the way that one style can cascade from one to another
.
Versions of CSS
Browser Support
CSS was Supported by the following Browser:
- Supported by Edge/Internet Explorer
- Supported by Firefox
- Supported by Chrome
- Supported by Safari
- Supported by Opera
- Supported by Edge with prefix -webkit-
- Supported by Firefox with prefix -moz-
- Supported by Chrome with prefix -webkit-
- Supported by Safari with prefix -webkit-
- Supported by Opera with prefix -webkit-
What's New in CSS 3
- Box Shadow. One of the CSS3 new features is the box-shadow property that adds a shadow to an element. ...
- Opacity. One of the CSS3 properties called opacity makes elements see-through or completely transparent. ...
- Rounded Corners. ...
- Attribute Selectors. ...
- New Colors. ...
- More than Web-Safe Fonts.
CSS vs CSS 3
Text Effects and Animations. CSS animations use JavaScript and jQuery. It has no feature of layer design, nor are there any special effects such as text shadows, text selections, etc.
Types of CSS
The three types of CSS are external, internal, and internal.
Inline CSS is a method of applying CSS styling directly within HTML elements using the “style” attribute. It allows developers to define individual element styles, It is used to apply a unique style to a single HTML element
External CSS is used to style multiple HTML pages with a single style sheet. External CSS contains a separate CSS file with a .css extension. The CSS file contains style properties added on selectors (For example class, id, heading, … etc.).
Internal CSS is a method for defining CSS styles within an HTML document's style element, it is used to provide a unique style for a single HTML document in the head section. This means that the CSS is embedded within the style tag inside the head section of the HTML file
CSS selectors and Their types:
We can divide CSS selectors into five categories: