Home > Web Front-end > CSS Tutorial > What is CSS

What is CSS

不言
Release: 2021-04-15 11:08:35
Original
25267 people have browsed it

CSS is the abbreviation of Cascading Style Sheets. The Chinese translation is Cascading Style Sheets; CSS (Cascading Style Sheets) plays a role in controlling the style of HTML statements, such as changing the size of characters, the color of the background, and the color of images. Arrangement etc.

What is CSS

The operating environment of this article: Windows 7 system, Dell G3 computer, css3 version.

What does CSS mean?

Pages created using HTML will display text, links and images on one side. By adding CSS effects there, you can create visually easy-to-view pages and richly designed pages. For example, if we want to turn a title red we can write the following code

<!DOCTYPE html>
<html>
<head>
	<title></title>
	<meta charset="utf-8">
	<style type="text/css">
	h2{
		color: red;/*添加css样式*/
	}
	</style>
</head>
<body>
<h2>这是一个标题</h2>
</body>
</html>
Copy after login

The effect is as follows: We Make the title font red by adding CSS styles to the text.

What is CSS

#CSS enables you to manage logical structures and visual expressions separately, improving maintainability and reusability.

Specifically,

If you want to make changes to the appearance, you don’t need to modify the HTML statement, just edit the CSS.

When creating a new HTML document, you can shorten your work time by transferring the CSS you used in the past.

By separating the description of the visual expression, the file size of the HTML document can be reduced. Make document viewers less stressed by reducing load times.

The visual expression to be applied can be distinguished according to the purpose of use, such as for display on PC and for printing.

The above is the detailed content of What is CSS. For more information, please follow other related articles on the PHP Chinese website!

Related labels:
css
source:php.cn
Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template