CSS Cascading style sheets Tutorials

What is CSS?

CSS is the cascading style sheet. CSS provides the styles to HTML elements and Website data.

What are the advantages of CSS?

  • Give style to data and information
  • Give style to the web structure
  • Saves a lot of time. For example, if we apply background color of 1000 web pages in a stylesheet, then it can save our time. Because that one CSS file is linked with all other 1000 web pages. If we want to change the background color in CSS file, then we need to change it only in one CSS file. and will change in all 1000 web pages.

How can we add CSS to HTML elements?

There are three ways;

  1. External CSS
  2. Internal CSS
  3. Inline CSS

CSS Exercises

Color change exercises

  1. CSS to change the color of hyperlinks on h1, h2, or h3
  2. CSS to change the color of hyperlinks on paragraphs
  3. CSS to change the color of hyperlinks on unordered lists ul
  4. CSS to change color of hyperlinks on the ordered list ol
  5. CSS to change color of hyperlinks on tr table row
  6. CSS to change the color of hyperlinks on td table data
  7. CSS to change color of hyperlinks on th table header
  8. CSS to change color of hyperlinks on tbody table body

General Exercises

Center a table in a div and span CSS

CSS Code to show unordered list in decimal numbered order 

Add a Comment