Home>Article>Web Front-end> How to reference CSS files into html web pages

How to reference CSS files into html web pages

coldplay.xixi
coldplay.xixi Original
2021-04-29 10:35:34 11058browse

Methods to reference CSS files into HTML web pages: 1. Embed CSS styles directly in HTML tag elements; 2. Use the style built-in style in HTML; 3. Use [@import] to reference external CSS files .

How to reference CSS files into html web pages

The operating environment of this tutorial: windows7 system, css3 version, DELL G3 computer.

How to quote CSS files into html web pages:

1. Embed css styles directly in html tag elements, such as

I am div css test content-www.divcss5.com supports

The effect is as shown below

How to reference CSS files into html web pages

2. Insert the style statement code in the head part of the html header as follows:

The specific method is as follows:

How to reference CSS files into html web pages

3. Use @import to reference external CSS files

    css引用方法实例-www.divcss5.com测试实例  
我是div css测试内容www.divcss5.com支持

Recommended related tutorials:CSS video tutorial

The above is the detailed content of How to reference CSS files into html web pages. 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