Home >>CSS Tutorial >What is CSS

What is CSS

What is CSS ?

CSS stands for Cascading style sheets. In web development the most essential feature is CSS. It is a language by which we can describe the behavior of an HTML webpage and the appearance of web pages.

By using CSS, you can control the style of fonts, color of the text, the spacing (letter spacing & word spacing) between paragraphs, how columns are sized, layout designs, define background color of HTML webpage and variations in display for different devices and screen sizes.

  • It can control the multiple web pages of the layout all at once.
  • You can stored external stylesheets in CSS files.
  • It describes how you want to displayed HTML elements on screen.
  • A lot of work is saved by CSS.

It provides a heavy control over the HTML document Presentation. You can easily learn and understand CSS.

Why Use CSS ?

  • Offline Browsing: With the help of offline cache CSS can store web applications locally. By using this you can view websites offline.
  • Easy Maintenance: All the elements in all webpages will be global updated automatically by simple change the style.
  • CSS saves time: Multiple HTML pages are handle by write External CSS once and then you can apply it to as many Web pages as you want .By changing just one file you can change the look of the website.
  • Superior styles to HTML: You can provide a better look to your web pages in comparison to HTML attributes CSS contains much attributes than HTML.

Here is the CSS example:

padding:5px;border:1px solid #000;  
<h1>Welcome to phptpoint </h1>   
Output :

Welcome to phptpoint.

A big problem is solved by CSS

To describe the content of the web page HTML was created, like

<h1>This is a heading</h1>
<p>This is a paragraph. </p>

Web developers had goosebumps when tags as <font>, and color attributes were introduced in the HTML 3.2 specification. The process of developing large websites became an unpleasant and horrific experience as it involved lots of fonts and color information addition to every single page.

For the large website development, where color and font's data were added to multiple single pages, it became a lengthy and expensive process.

The W3C (World Wide Web Consortium) created CSS to solve this problem.

CSS helps the HTML page to remove the style formatting.

Popular Tutorials