CSS is a technology called stylesheet. Some people also call it Cascading Stylesheet ).
CSS technology is used in homepage creation to control page layout, Font, color, background and other effects more accurately.
You only need to make some simple changes to the corresponding code, you can change the appearance and format of different parts of the same page, or pages of different webpages.
It can achieve the following functions:
(1) It can be used in almost all browsers.
(2) previously, some functions that had to be implemented through image conversion can now be easily implemented with CSS to download pages faster.
(3) make the page font more beautiful and easier to orchestrate, so that the page is truly pleasing to the eye.
(4) You can easily control the page layout.
(5) you can update the style formats of many web pages at the same time without updating them one page at a time. You can use a CSS file to control all the webpage styles on the site. As long as you modify the corresponding lines in the CSS file, all the pages of the whole site will change accordingly.
Think about how we can control the color and size of the font and the font we use before using CSS? We generally use HTML tags for implementation. For example, to implement a simple "HELLO" on the right, its code is:
B> HELLO
It is hard to imagine that if the font color needs to be replaced frequently on a page, the length of the final HTML code must be bloated.
To be honest, CSS was born to simplify such a job. Of course its functions are not that simple.
CSS controls the style of the entire page by controlling the style of the page structure.
The style sheet is placed on the page. It is completely plain text and can be easily understood by anyone who understands HTML. For some very old browsers, pages will not cause page chaos.