1. Intra-row
Use style attribute in HTML Tag
Code:
- <P style = "color: # ff0000;"> ...... </P>
Because you need to set the style attribute for each tag, the post-maintenance cost is very high, and it is easy to appear bloated, not recommended.
2. embedded
Write CSS between
It is only applicable to setting a separate style for special pages.
3. Link
Code:
- <Head> <link href = "02-08.css" type = "text/CSS" rel = "stylesheet">
4. Pilot type
Imported style sheets are imported into HTML files during HTML file initialization, which is a part of the file, similar to the embedded effect. The link style table is introduced as a link only when HTML tags need to be formatted.
The following @ import statements are commonly used to import a style table into an HTML file. You can choose either of them between <style> and </style>:
@ Import url(sheet1.css );
@ Import URL ("sheet1.css ");
@ Import url('sheet1.css ');
@ Import sheet1.css;
@ Import "sheet1.css ";
@ Import 'sheet1.css ';
To import a style sheet, you can import many style sheets to an HTML file. You can also import a style sheet in the style sheet.
Code:
- <Style type = "text/CSS">
- <! -- @ Import url(02-08.css );
- @ Import url(20-10.css); -->
- </Style>