Home  >  Article  >  Web Front-end  >  what is css component

what is css component

藏色散人
藏色散人Original
2021-01-05 10:48:472503browse

css components refer to components that are rendered using only CSS. All CSS components are designed using the AO pattern idea. This is also a characteristic of CSS. Styles with different names can be superimposed together; styles with the same name can be used together. styles, the later ones will overwrite the previous ones, thus achieving the effect of combined application.

what is css component

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

Related recommendations: "css Video Tutorial"

CSS refers to Cascading Style Sheets, which is a method used to express HTML or XML, etc. The computer language of file style is a programming language used to express HTML style. It is a style language that can separate web pages and content.

What are css components?

CSS components, as the name suggests, are components rendered using only CSS.

Design ideas of CSS component architecture

Both design ideas and architecture can be summarized in one word: AO pattern. A means Append, which means "additional", and O means Overwrite, which means "rewriting". All CSS components are designed using this idea. This is also a characteristic of CSS. Styles with different names can be superimposed and used; for styles with the same name, the later ones will overwrite the previous ones, thereby achieving the effect of combined application.

what is css component

Expansion:

CSS can perform pixel-level precise control of the layout of element positions in web pages, supports almost all font size styles, and has the ability to control web page objects and model style editing capabilities.

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.

For more programming-related knowledge, please visit: Programming Teaching! !

The above is the detailed content of what is css component. 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