css can be written in HTML. The writing methods are: 1. Write css in the style tag of the head tag; 2. Add the style attribute directly to the HTML code, and then define the css code in the attribute. .
The operating environment of this tutorial: windows7 system, css3&&html5 version, Dell G3 computer.
Recommended: "css video tutorial" "HTML video tutorial"
How to write css in HTML:
1. Internal style sheet - write css in the style tag of the head tag
When a single file requires special styles, you can use the internal style sheet. You can define internal style sheets via the