Home  >  Article  >  Web Front-end  >  What is the difference between css and xml

What is the difference between css and xml

WBOY
WBOYOriginal
2022-04-24 11:21:151991browse

The difference is: css is a cascading style form, which is a markup language that separates style information from web page content. It is mainly used to design the style of web pages and can also format various elements of web pages; xml can Extensible Markup Language is a data storage language that uses simple markup to describe data, divide the document into many parts, and identify these parts.

What is the difference between css and xml

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

What is the difference between css and xml

CSS—Cascading Style Sheet

Cascading style sheet. It is a markup language that separates style information from web page content.

CSS is mainly used to design the style of web pages and beautify web pages; it can not only statically modify web pages, but also dynamically format various elements of web pages in conjunction with various scripting languages.

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

We use CSS to define styles for each HTML element, which can also be used for multiple interfaces. When making a global update, just modify the style.

body {
    border :1px solid #000;/*整体的边框*/
    font-size :14px;
}

To put it bluntly, CSS is the language for setting the attributes of HTML elements on web pages.

XML—Extensible Markup Language

Extensible Markup Language. Divide the document into components and label the components. It is also a meta-markup language, that is, it defines a syntactic language for defining other domain-specific, semantic, and structured markup languages.

Extensible Markup Language (a subset of Standard Generalized Markup Language) is a simple data storage language that uses a series of simple tags to describe data, and these tags can be established in a convenient way, although extensible Markup languages ​​take up more space than binary data, but extensible markup languages ​​are extremely simple to master and use.

<Hello>  
<bcd>China</bcd>  
<bcd>USA</bcd>  
<bcd>UK</bcd>  
</Hello>

The design goals of XML focus on simplicity, versatility and usability on the Internet. It is a text data format that provides strong support for different human languages ​​through Unicode. Although XML was designed primarily with a focus on documents, the language is widely used to represent arbitrary data structures, such as those used in web services.

(Learning video sharing: css video tutorial)

The above is the detailed content of What is the difference between css and xml. 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
Previous article:What does rtl mean in cssNext article:What does rtl mean in css