1: Is css a language?
css is a cascading style sheet, a programming language used to represent html styles. The latest version of css is currently It is CSS3. CSS is a style language that can separate web pages and content. Before CSS entered the front-end language, many people regarded CSS as a front-end language. Today, CSS can not only decorate web pages, but also coordinate Various scripts format web pages. [Recommended reading:What is the difference between html and css]
2: How to use css language
There are three types of css language Methods include external style sheets, internal style sheets, and inline style sheets. Let’s explain them separately below: 1. External style sheetThe external style sheet puts the css code file into the css style sheet, and then The path of the css file is directly referenced in html, and can also be imported. The syntax is as follows:<link type="text/css" rel="styleSheet" href="CSS文件路径" />
<head> <style type="text/css"> h3{ color:red; } </style> </head>
<h1 style="color:red;">行内样式表</h1>
CSS3 tutorial, please pay attention to the php Chinese website.
The above is the detailed content of Is css a language?. For more information, please follow other related articles on the PHP Chinese website!