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;
- External CSS
- Internal CSS
- Inline CSS
CSS Exercises
Color change exercises
- CSS to change the color of hyperlinks on h1, h2, or h3
- CSS to change the color of hyperlinks on paragraphs
- CSS to change the color of hyperlinks on unordered lists ul
- CSS to change color of hyperlinks on the ordered list ol
- CSS to change color of hyperlinks on tr table row
- CSS to change the color of hyperlinks on td table data
- CSS to change color of hyperlinks on th table header
- CSS to change color of hyperlinks on tbody table body