Introduction to CSS

Introduction to CSS


CSS stands for Cascading Style Sheet. CSS gives style to the elements of HTML that is to be displayed on the Browser. It controls layout of multiple web pages at once. CSS file is saved in .css extension.

CSS can control color, text, background colors and much more. In case of responsive (mobile friendly) websites CSS is changed according to device width and in frameworks like bootstrap, CSS is predefined for quick use. Media query is used in CSS to change CSS according to device width.

CSS is very easy to learn and it provides and beautiful design to HTML page. Single CSS files can be included for controlling all the web pages.

CSS is of three types:
  1. Internet CSS
  2. External CSS
  3. Inline CSS

Internal CSS

Internal CSS is basically used when you want to apply only on single page. It can be written before closing of head tag by apply style tag.

External CSS

External CSS is used when we want to control styling of our website with a single CSS file. That CSS file is included in all the web pages before closing head tag.

Inline CSS

If we want to apply some design in a particular tag. Like <p style=”color: red”></p>. In this case only this p tag will contain the style property

CSS is now more advance you can know about CSS3 introduction

Share this

Related Posts

Previous
Next Post »