Getting Started with CSS

What is CSS Comments?

We can insert comments in our CSS much like we can with HTML code. And just as in HTML, the comment will be ignored by the web browser. A CSS comment begins with “/*”, and ends with “*/”, like the following example. /* This is a CSS comment */ p { font-size: 120%; /* This …

What is CSS Comments? Read More »

CSS Identifier

CSS identifier also known as CSS selectors. Selectors are used to access the CSS styles. They can be very useful sometimes you want to apply a special style to a particular element or a particular group of elements.   There are three kinds of selectors in CSS: Element or Tag Selector Class Selector ID selector …

CSS Identifier Read More »

Background Colors And Images In CSS

The background color property allows you to set the background color of an HTML element. The following CSS code example shows how to set the background property of a paragraph in aninternal style sheet. <html> <head> <style type=”text/css”> p { background-color: cyan } </style> </head> <body> <p> This paragraph will have a cyan background </p> …

Background Colors And Images In CSS Read More »

What is Cascading In CSS?

Cascading is like a waterfall. You start at the top. As you go down, there are different levels. There are 3 “levels” of CSS commands: On the same page within an HTML tag as a property. On the same page in the <HEAD> … </HEAD> area. On a separate page. Choosing the one or combination …

What is Cascading In CSS? Read More »