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

What is CSS

不言
不言Original
2018-11-16 10:45:3925247browse

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>

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!

Statement:
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