Home >Web Front-end >CSS Tutorial >Five ways to introduce CSS styles_CSS/HTML
1. Use the STYLE attribute
Add the STYLE attribute directly to individual component tags,
The advantage of this usage is Styles can be applied flexibly to each tag, but the disadvantage is that there is no "uniformity" in the entire document
2. Use STYLE tag
Write style rules in tags.
For example:
Usually the entire .
For example:
It should be noted that the semicolon at the end of the line is absolutely essential!
5. Use the tag to introduce styles
For example: WEB Standard