Introduction to Cascading Style Sheets

CSS or Cascading Style Sheets is the language for describing the web pages, including colors, layout, and fonts, and to adapt the presentation of the web page to different types of devices, such as large screens, small screens (tablet, mobile phones or laptop).

CSS is independent of HTML (Hyper Text Markup Language) and can be used with any markup language.

Cascading Style Sheets is one of the most powerful tools a web designer can learn because with it you can affect the entire look of a web page.


Brief History of CSS


HTML was developed by the British physicist Sir Tim Berners-Lee in 1990, and in that time, there was no such thing as Cascading Style Sheets.

Cascading Style Sheets or CSS was first developed in 1997 as a way for web developers to change the visual appearance of the web pages that they were creating.

It was intended to allow web professionals to separate the content and structure of a web site’s code from the visual design, something that had not been possible prior to this time.

CSS allows web developers to separate the content and structure of a website code from visual design, so HTML can perform more of the function that it was originally based on, without having to worry about the design and layout of the page itself.

CSS didn’t get popular until the beginning of the 21-st century when web browsers began using more complex styles to style markup language.

Today, we can say, that all modern browsers support CSS. CSS continuously evolve and new styles are introduced, so web designers have powerful new styling tool to work with.

CSS is now a widely used standard in web design and you can’t find anyone working in the industry today who did not have at least a basic knowledge of this language.


Why We Use CSS?


We use CSS to style web pages, and CSS do that by interacting with HTML elements.

Web developers use CSS to create a uniform look across several pages of one website.

Web developers defined the style only once in a CSS document, instead of creating a style of each HTML element within a web page.

With CSS, commonly used styles need to be defined only once in a CSS document, and that how defined, can be used by any page that references the CSS file.

For example, a web developer may want to change the default text color from black to gray for all pages of a website. If all pages lead to the same CSS file, the text color only needs to be changed on the style sheet and all the pages will show the text in another color.

CSS is not only great for creating text styles, but it is also very useful for defining the look of other objects in the website. Table cells, the style, and color of a table’s border, images, lists are styled also with CSS.

All this is the reason why the most web pages today incorporate Cascading Style Sheets (CSS).



No Comments

Post A Comment