Home>Article>Daily Programming> Three ways to add CSS
CSS style is an important part of the front-end web page production, so how to use and introduce CSS style is particularly prominent. This article mainly introduces three ways to use CSS style.
1. Use external styles:
The style.css file is as follows
h1 { color: blue; background-color: yellow; border: 1px solid black; } p { color: red; }
When filling in the href Is the location of the css file
2. Use internal styles:
Document php.cn
3. Use inline styles (Inline style):
Hello World!
Test
Recommended: "2021 CSS Interview Questions Summary (Latest)"
The above is the detailed content of Three ways to add CSS. For more information, please follow other related articles on the PHP Chinese website!