Home >Web Front-end >CSS Tutorial >What can CSS do?
css is a computer language that can be used to express file styles such as HTML or XML. It is a programming language used to express HTML styles. It is a style language that can separate web pages and content.
The operating environment of this tutorial: Windows 7 system, CSS3&&HTML5 version, Dell G3 computer.
css refers to Cascading Style Sheets, which is a computer language used to express file styles such as HTML or XML. It is a programming language used to express HTML styles. It can be A style language that separates web pages and content.
Before CSS, almost all presentation properties of an HTML document were contained in HTML markup (especially in HTML tags); all font colors, background styles, element alignment, borders, and sizes had to be in HTML explicit description.
As a result, the development of large websites becomes a long and expensive process as style information is added repeatedly to every page of the website.
In order to solve this problem, the World Wide Web Consortium (W3C) introduced CSS in 1996 and maintained its standards. CSS aims to achieve separation of presentation and content. Web designers can now move a web page's formatting information into a separate style sheet, which makes HTML markup simpler and more maintainable.
What does css do?
CSS is mainly used to design the style of web pages and beautify web pages; it can not only statically modify web pages, but also dynamically format various elements of web pages in conjunction with various scripting languages.
CSS can perform pixel-level precise control over the layout of element positions in web pages, supports almost all font size styles, and has the ability to edit web page objects and model styles.
Using CSS technology when making the homepage can effectively achieve more precise control over the layout, fonts, colors, backgrounds and other effects of the page.
As long as you make some simple modifications to the corresponding code, you can change the appearance and format of different parts of the same page, or web pages with different numbers of pages.
The use of CSS layout has the following three significant advantages over the traditional TABLE web page layout:
1. Separation of performance and content
Strip out the design part and put it in In an independent style file, only text information is stored in the HTML file. Such pages are more friendly to search engines.
2. Improve page browsing speed
For the same page visual effect, the page capacity using CSS layout is much smaller than the page file capacity encoded by TABLE. The former is generally only 1 of the latter. /2 size. The browser doesn't have to compile a lot of lengthy tags.
3. Easy to maintain and revise
You can redesign the entire website page by simply modifying a few CSS files.
Recommended learning: css video tutorial
The above is the detailed content of What can CSS do?. For more information, please follow other related articles on the PHP Chinese website!