Home  >  Article  >  Web Front-end  >  What is css technology

What is css technology

little bottle
little bottleOriginal
2019-05-31 10:12:475550browse

What is CSS? Maybe you've heard of CSS, but don't really know what it is. In this article you will learn more about CSS and what it can do.

What is css technology

CSS is the abbreviation of Cascading Style Sheets.

What can you do with CSS?

CSS is a style sheet language used to define the layout of HTML documents. CSS can perform pixel-level precise control over the layout of element positions in web pages, supports almost all font sizes and styles, and has the ability to edit web page objects and model styles.

For example, CSS involves fonts, colors, margins, height, width, background images, advanced positioning, etc.

Of course HTML can also add layout effects to the website, but it may be misused. CSS provides more choices and is more precise and complete. All browsers now support CSS.

What is the difference between CSS and HTML?

HTML is used for structured content; CSS is used for formatting structured content.

In the era when Tim Berners-Lee invented the World Wide Web, HTML was the only language used to add structure to text.

Authors can mark up text by stating "This is a heading" (using the h1 tag) or "This is a paragraph" (using the p tag).

As the Web gradually became popular, web designers began to seek the possibility of adding layout to web pages. To this end, browser manufacturers at the time (Netscape and Microsoft) invented some new HTML tags (such as , etc.) to introduce a new layout - not a new structure.

This has also resulted in tags originally used for structuring text (such as

, etc.) being increasingly misused for page layout. Many new layout tags (such as ) are supported by only one browser. "You need to use such-and-such browser to view this page" became a common statement on many websites at the time.

CSS was invented to improve this situation. It provides web designers with complete layout capabilities that are supported by all browsers.

Moreover, the separation of document presentation style and content also makes website maintenance much easier.

What are the benefits of using CSS?

CSS is a revolution in the world of web design. The specific advantages of CSS include:

1. Control the layout of multiple documents through a single style sheet;

2. More precise layout control;

3. Adopt different layouts for different media types (screen, print, etc.);

4. Countless advanced, advanced techniques.

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