1. Intra-row style.
Write the style between element tags.
<P style = "font-size: 24px; color: # aaafff"> Use CSS to control the intra-row style of the page style </P>
2. embedded
Write the style between the head and use <style> </style> to include it.
<Head> <style>
P {
Font-size: 24px;
}
</Style>
3. Link
The link is the most frequently used and practical method. The HTML code and CSS styles are completely separated. Both the early-stage artist and the later-stage maintenance are very convenient, and help the front-end and back-end developers simultaneously. Link only when style is used
<Link href = "demo.css" type = "text/CSS" rel = "stylesheet">
4. Pilot type
Similar to the link type, but the syntax is different. During HTML formatting, the pilot type imports CSS files as part of HTML. The effect is similar to that of embedded data. You can also import other style files in the CSS file.
<Style>
<Import url = "demo.css">
</Style>
Priority (highest-lowest ):
In-row style-"link type-" embedded type-"a" Guide type.
When designing a website, it is best to use the 1-2 method to facilitate later maintenance. Prevents style crashes.