Home » XML Basics » 12 - CSS
12

What is CSS

This section will give you the definition of CSS or Cascading Style Sheets, which helps give web pages that consistent look. Also, learn how XML and CSS work together to help develop web pages and how they are used in various web applications.

What is CSS?

CSS stands for Cascading Style Sheets. It was invented in 1997 and is primarily used for web pages that need a consistent style. Formatting of web pages is made much easierfor the developer and viewing of web pages is mademore pleasing to theeyes of the users.

XML and CSS

XML and CSS go hand in hand when it comes to developing web pages and web applications. You will be able to maximize your XML skills when you have knowledge of CSS. One of the main reasons of using CSS is the ability to apply a style or property throughout an entire web page instead of typing in the styles and properties one by one on each and every tag. This saves a lot of time and allows consistency in web design.

www.foxie.ru

www.foxie.ru, Shown above is an example of a website that uses CSS or Cascading Style Sheets.

The CSS Command Structure

CSS commands follow the basic structure of

tag {selector: declaration}

The tag will be affected by the selector and the declaration. For instance, you can do this:

h1 {color: blue}

This will make all the h1 headings color blue.