Network Security Internet Technology Development Database Servers Mobile Phone Android Software Apple Software Computer Software News IT Information

In addition to Weibo, there is also WeChat

Please pay attention

WeChat public account

Shulou

What does css mean in English?

2025-01-18 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Development >

Share

Shulou(Shulou.com)06/03 Report--

This article will explain in detail what css means in English. The editor thinks it is very practical, so I share it for you as a reference. I hope you can get something after reading this article.

Css English full name is Cascading Style Sheets, which means cascading style sheets, also known as string style lists, cascading style sheets, cascading style sheets, hierarchical style sheets, is a computer language used to add styles to structured documents, defined and maintained by W3C.

This article operating environment: windows7 system, CSS3 version, Dell G3 computer.

What does css mean in English?

Cascading style sheets (English: Cascading Style Sheets, abbreviations: CSS;, also known as cascading style lists, cascading style sheets, cascading style sheets, hierarchical style sheets) is a computer language used to add styles (fonts, spacing, colors, etc.) to structured documents (such as HTML documents or XML applications), defined and maintained by W3C.

CSS is divided into different levels: CSS1 is now obsolete, CSS2.1 is the recommended standard, and CSS3 is divided into small modules and is being standardized. [source request] CSS3 is now supported by most modern browsers, while the next version of CSS4 is still under development.

Overview

CSS cannot be used alone and must work with HTML or XML to decorate HTML or XML. This paper mainly introduces the CSS technology used to decorate HTML web pages. HTML is responsible for determining what is in the page, and CSS determines how these elements are displayed (size, weight, color, alignment, and location). CSS can be used to set page layout, style page elements, and set global styles that apply to all web pages. CSS can be added sporadically and directly to the web page elements to which the style is applied, or it can be centrally built into the web page, linked to the web page, and imported into the web page.

The most important goal of CSS is to separate the contents of the file from its display. Before the emergence of CSS, almost all HTML files contain the information displayed in the file, such as the color of the font, what the background should be, how to arrange, edges, lines, and so on, which must be listed in the HTML file one by one, sometimes repeatedly. CSS allows authors to isolate most of this information and simplify the HTML file, which is placed in an auxiliary file written in CSS. The HTML file contains only structure and content information, and the CSS file contains only style information.

For example, the H2 flag in HTML is a second-level title, which is lower than the first-level title H1 and higher than the third-level title H3. This information is all structural information.

Generally speaking, the higher the level of the title, the larger the font, and the largest font of H1, because generally speaking, the larger the font, the more important the content it represents, and the general headings use bold characters to highlight their importance. Generally speaking, H2 uses bold font, which is larger than H3 and smaller than H1. This information is used for display.

Before CSS, if the author wanted to determine the color, glyph, size, or other display characteristics of the H2 title, he would use font or other style instructions in HTML. H2 is not enough, because H2 is just a structural instruction. If a title is to be in italics, red characters, and white background, the author should write:

Use CSS

These display instructions make a HTML very complex and difficult to maintain. If all secondary titles were to be displayed in this way, all secondary title instructions would be so complex. In addition, the reader cannot change these rules, and if a reader prefers the blue title, he cannot change the color of the title, because the author of the document specifically specifies the color of the title.

Using CSS, the H2 directive only specifies the structure of the article, and its display is defined by the stylesheet. The above example can look like this:

Use CSS

A compliant stylesheet can specify that H2 instructions use italics, red words, and white backgrounds:

H2 {color: red; background: white; font-style: italic;}

This separates the display from the content (because of the advantages of CSS, the W3C is now considering discarding many of the display instructions in HTML). HTML only expresses the structure of the article, and CSS expresses all the displays. CSS can indicate color, glyph, arrangement, size, and many other non-visual expressions, such as reading the contents of a document.

CSS style information can be contained in an attachment or in an HTML file. The reader can use multiple stylesheets, and he can choose one of them in the case of repetition. Different media can use different style sheets. For example, the display of a file on the screen can be different from that printed in the printer. In this way, the author can design the best display mode for different media. In addition, one of the goals of CSS is to give readers more freedom to control the display. If a reader finds it difficult to read the title of italics, he can use his own stylesheet file, which can be used "cascading". He can only change the style of red italics and retain all other styles.

This is the end of the article on "what does css mean in English?". I hope the above content can be helpful to you, so that you can learn more knowledge. if you think the article is good, please share it for more people to see.

Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.

Views: 0

*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.

Share To

Development

Wechat

© 2024 shulou.com SLNews company. All rights reserved.

12
Report