That is, use the Style property to write the CSS directly in the HTML tag.
For example: <p style= "color:red" > This line of paragraph will appear in red. </p>
Note : The Style property can be used on all (X) HTML tags in <body>, but not with labels other than <body>, such as <title >
Two, the embedded style sheet (Embedded style Sheets)
Embedded style sheet is embedded in the header of the (X) HTML file using the "<style></style>" tab, and the code is as follows:
<style type= "Text/css"
<!--
. class{
Color:red
}
-->
</style>
Note : for some unrecognized <s Tyle> label Browser, use (X) HTML annotation label <!--annotation text--> to include the style. In this way, browsers that do not support <style> tags ignore style content, and browsers that support <style> tags interpret the style sheet.
Three, the external style sheet (Link style Sheets)
Connects the style sheet file to (X) HTML files using <link> labels within the
Code is as follows:
<link style= "stylesheet" href= "Myclass.css" type= "Text/css"/>< /p>