Reference the css style writing format, css style Writing
There are three types of css writing formats.
Intra-row style: Write a style in the row.
For example, <p style = "color: red"> write my colors in a row style </p>
Only applicable to labels in <body> (font color and background color) and <body>, but not to labels other than <body> such as head, title, etc.
Embedded Style: Use style to unmount all styles.
For example:
<Head>
<Style>
P {
Color: red;
Background: blue;
Border: 1px solid green;
}
</Style>
</Head>
<Body>
<P> write my style in Embedded mode </p>
</Body>
External Style: Use the link sample to connect to the external. CSS file.
For example:
<Head>
<Link style = "stylesheet" href = "class.css" type = "text/css"/>
</Head>
It's easy. Just write the CSS sample to another. CSS text and then you only need link to display the style on the page, but be sure to pay attention to the file path !!! The path is incorrect and cannot be dropped.
I personally recommend that you use the external style to separate css from the layout code, so that the code can be edited and loaded faster.