search
HomeWeb Front-endFront-end Q&AWhat modules does css3 include?

The modules included in css3 are: 1. List module, used to add styles to HTML lists; 2. Multi-column layout, which extends the block layout mode to make it easier to define multi-column text; 3. Color module , providing a variety of ways to define colors, such as color names, rgb(), hsl(), etc.; 4. Media queries, allowing CSS to operate on different devices.

What modules does css3 include?

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

CSS3 is an upgraded version of CSS (Cascading Style Sheets) technology. It was formulated in 1999. On May 23, 2001, W3C completed the working draft of CSS3, which mainly includes box model, list module and hyperlink method. , language module, background and border, text effects, multi-column layout and other modules

A major change in the evolution of CSS is the W3C's decision to divide CSS3 into a series of modules.

As early as 2001, W3C completed the draft specification of CSS3. A new feature of the CSS3 specification is that it is divided into several independent modules.

  • On the one hand, dividing it into several smaller modules is more conducive to timely updating and publishing of specifications, and timely adjustment of module content. These modules can be implemented and released independently, which also lays the foundation for future expansion of CSS. .

  • On the other hand, due to limitations of supported devices and browser manufacturers, devices or manufacturers can selectively support some modules and a subset of CSS3, which is beneficial to CSS3 promotion.

The following is the specification of each module of CSS3 as of January 2021:

##1999.06.22 - 2018.06.19Color ModuleRecommendedcss-color-3#1999.06.25 - 2014.03.201999.08.03 - 2018.11.06#2001.04.04 - 2012.06.19##2001.05.17 - 2020.12.22 Text moduleCandidate recommendationcss-text-3##2001.07.13 - 2021.02.11##2001.07.13 - 2019.06.062001.07.26 - 2020.12.22Background and Border ModuleCandidate Recommendationcss-backgrounds- 3List module##2002.05.15 - 2020.08.27Inline layout moduleWorking Draftcss-content-3##2004.02.24 - 2014.10.14Hyperlink display moduleWorking group notescss3-hyperlinks2005.12.15 - 2015.03.26Template Layout ModuleWorking Group Notescss-template-3##2006.06.12 - 2014.05.132008.08.01 - 2014.10.14##2009.07.23 - 2020.12.17Box arrangement moduleWorking Draft#2013.04.18 - 2020.06.03Overflow moduleWorking Draftcss-overflow-32014.02.20 - 2020.12.18Display type moduleCandidate recommendationcss-display-3For example:
Time
Name
Last status
Module
1999.01.27 - 2019.08.13
Text modification module
Candidate recommendation
css-text-decor-3
##1999.06.22 - 2018.10.18
Pagination media module
Working Draft
css-page-3
1999.06. 23 - 2019.10.15
Multi-column layout
Working draft
css-multicol- 1
Namespace module
Recommended
css-namespaces-3
Selector
Recommended
selectors-3
Media Inquiries
Recommended
##css3-mediaqueries
Cascading and Inheritance
Recommended
css-cascade-3
Value and unit module
Candidate recommendations
css-values-3
Basic box model
Candidate recommendation
css-box-3
##2001.07.31 - 2018.09.20
Font module
Recommended
css-fonts-3
##2001.09.24 - 2020.12.22
##2002.02.20 - 2020.11.17
Working Draft
css-lists-3
Working draft
##css-inline-3
2002.08.02 - 2018.06.21
Basic User Interface Module
Recommended
css-ui-3
##2003.05.14 - 2019.08.02
Generate Content Module
##2003.08.13 - 2019.07.16
Grammar module
Candidate recommendations
css-syntax-3
Pagination media module Generate Content
Working Draft
css-gcpm-3
Marquee Module
Working Group Notes
css3 -marquee
Image module
Candidate recommendation
css-images-3
##2010.12.02 - 2019.12.10
Writing Modes
Recommended
css-writing-modes-3
2011.09.01 - 2020.12.08
Conditional Rule Module
Candidate Recommendation
css3-conditionalr
2012.02.07 - 2020.05.19
Positioning Layout Module
Working Draft
css-position-3
2012.02.28 - 2018.12.04
Fragment module
Candidate recommendation
css- break-3
##2012.06.12 - 2020.04.21
css-align-3
2012.09.27 - 2020.12.18
Width and Height Size Module
Working Draft
css-sizing-3
2012.10.09 - 2017.12.14
##Counter style
Candidate recommendation
css-counter-styles-3


css3 color module

Color representation method supported by CSS3

    Represented by the English name of the color. The English name represents a color, but the representation is very limited and difficult to remember and query.
  • is represented by hexadecimal color. The principle of the three primary colors of color and light can be looked up in the table.
  • is represented by rgb (r, g, b). The principle of three primary colors of light, red, green and blue.
  • Represented by hsl (Hue, Saturation, Lightness). Hue Saturation Brightness.
  • Represented by rgba (r, g, b, a). The principle of three primary colors of light, red, green, blue and transparency. a ∈ [0, 1], 0 represents complete transparency.
  • Represented by hsla (Hue, Saturation, Lightness, alpha). Hue, saturation, brightness and transparency. alpha ∈ [0, 1], 0 represents complete transparency.
CSS3 Multi-Column Layout

CSS Multi-Column Layout Extends the block layout mode to make it easier to define multiple columns of text. If a line is too long, people have trouble reading the text; if it takes the eyes too long to move from the end of one line to the beginning of the next, they lose the line they are on. Therefore, to make the most of a large screen, authors should place columns of text of varying widths side by side, like a newspaper.

css3 Media Query

With the rapid popularity of mobile devices, users no longer just browse Web content through traditional computer systems, more and more users are beginning to Use smartphones, tablets or other devices of various sizes to browse web content. In order to ensure that users using different devices can have a good experience, media queries are needed.

Media query is one of the most important functions of CSS style sheets. The so-called media query refers to distinguishing various devices (such as computers, mobile phones, tablets) based on different media types (device types) and conditions. , Braille devices, etc.) and define different CSS styles for them respectively. Media queries allow CSS to more accurately act on different devices or different conditions on the same device, so that all users can get a good user experience.

/* 在小于或等于 992 像素的屏幕上,将背景色设置为蓝色 */
@media screen and (max-width: 992px) {
  body {
    background-color: blue;
  }
}
/* 在 600 像素或更小的屏幕上,将背景色设置为橄榄色 */
@media screen and (max-width: 600px) {
  body {
    background-color: olive;
  }
}

(Learning video sharing:

css video tutorial

, web front-end)

The above is the detailed content of What modules does css3 include?. 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
HTML and React's Integration: A Practical GuideHTML and React's Integration: A Practical GuideApr 21, 2025 am 12:16 AM

HTML and React can be seamlessly integrated through JSX to build an efficient user interface. 1) Embed HTML elements using JSX, 2) Optimize rendering performance using virtual DOM, 3) Manage and render HTML structures through componentization. This integration method is not only intuitive, but also improves application performance.

React and HTML: Rendering Data and Handling EventsReact and HTML: Rendering Data and Handling EventsApr 20, 2025 am 12:21 AM

React efficiently renders data through state and props, and handles user events through the synthesis event system. 1) Use useState to manage state, such as the counter example. 2) Event processing is implemented by adding functions in JSX, such as button clicks. 3) The key attribute is required to render the list, such as the TodoList component. 4) For form processing, useState and e.preventDefault(), such as Form components.

The Backend Connection: How React Interacts with ServersThe Backend Connection: How React Interacts with ServersApr 20, 2025 am 12:19 AM

React interacts with the server through HTTP requests to obtain, send, update and delete data. 1) User operation triggers events, 2) Initiate HTTP requests, 3) Process server responses, 4) Update component status and re-render.

React: Focusing on the User Interface (Frontend)React: Focusing on the User Interface (Frontend)Apr 20, 2025 am 12:18 AM

React is a JavaScript library for building user interfaces that improves efficiency through component development and virtual DOM. 1. Components and JSX: Use JSX syntax to define components to enhance code intuitiveness and quality. 2. Virtual DOM and Rendering: Optimize rendering performance through virtual DOM and diff algorithms. 3. State management and Hooks: Hooks such as useState and useEffect simplify state management and side effects handling. 4. Example of usage: From basic forms to advanced global state management, use the ContextAPI. 5. Common errors and debugging: Avoid improper state management and component update problems, and use ReactDevTools to debug. 6. Performance optimization and optimality

React's Role: Frontend or Backend? Clarifying the DistinctionReact's Role: Frontend or Backend? Clarifying the DistinctionApr 20, 2025 am 12:15 AM

Reactisafrontendlibrary,focusedonbuildinguserinterfaces.ItmanagesUIstateandupdatesefficientlyusingavirtualDOM,andinteractswithbackendservicesviaAPIsfordatahandling,butdoesnotprocessorstoredataitself.

React in the HTML: Building Interactive User InterfacesReact in the HTML: Building Interactive User InterfacesApr 20, 2025 am 12:05 AM

React can be embedded in HTML to enhance or completely rewrite traditional HTML pages. 1) The basic steps to using React include adding a root div in HTML and rendering the React component via ReactDOM.render(). 2) More advanced applications include using useState to manage state and implement complex UI interactions such as counters and to-do lists. 3) Optimization and best practices include code segmentation, lazy loading and using React.memo and useMemo to improve performance. Through these methods, developers can leverage the power of React to build dynamic and responsive user interfaces.

React: The Foundation for Modern Frontend DevelopmentReact: The Foundation for Modern Frontend DevelopmentApr 19, 2025 am 12:23 AM

React is a JavaScript library for building modern front-end applications. 1. It uses componentized and virtual DOM to optimize performance. 2. Components use JSX to define, state and attributes to manage data. 3. Hooks simplify life cycle management. 4. Use ContextAPI to manage global status. 5. Common errors require debugging status updates and life cycles. 6. Optimization techniques include Memoization, code splitting and virtual scrolling.

The Future of React: Trends and Innovations in Web DevelopmentThe Future of React: Trends and Innovations in Web DevelopmentApr 19, 2025 am 12:22 AM

React's future will focus on the ultimate in component development, performance optimization and deep integration with other technology stacks. 1) React will further simplify the creation and management of components and promote the ultimate in component development. 2) Performance optimization will become the focus, especially in large applications. 3) React will be deeply integrated with technologies such as GraphQL and TypeScript to improve the development experience.

See all articles

Hot AI Tools

Undresser.AI Undress

Undresser.AI Undress

AI-powered app for creating realistic nude photos

AI Clothes Remover

AI Clothes Remover

Online AI tool for removing clothes from photos.

Undress AI Tool

Undress AI Tool

Undress images for free

Clothoff.io

Clothoff.io

AI clothes remover

Video Face Swap

Video Face Swap

Swap faces in any video effortlessly with our completely free AI face swap tool!

Hot Tools

MantisBT

MantisBT

Mantis is an easy-to-deploy web-based defect tracking tool designed to aid in product defect tracking. It requires PHP, MySQL and a web server. Check out our demo and hosting services.

Dreamweaver Mac version

Dreamweaver Mac version

Visual web development tools

SublimeText3 Mac version

SublimeText3 Mac version

God-level code editing software (SublimeText3)

PhpStorm Mac version

PhpStorm Mac version

The latest (2018.2.1) professional PHP integrated development tool

WebStorm Mac version

WebStorm Mac version

Useful JavaScript development tools