Embedded css st...LOGIN

Embedded css styles

Embedded css style means that the css style code can be written between the <style type="text/css"></style> tags. For example, the following code sets the text in the three <span> tags to red:

<style type="text/css">
span{
color:red;
}
</style>

The embedded css style must be written between <style></style>, and generally In this case, the embedded css style is written between <head></head>. Such as the code in the editor on the right.

Embedded is to write the settings for various elements in the page between <head> and </head>. For a single web page, this method is very convenient. But for a website that contains many pages, if each page sets its own style inline, the huge advantages brought by CSS will be lost. Therefore, a website usually writes an independent CSS style sheet file.

Next Section
<!DOCTYPE HTML> <html> <head> <meta http-equiv="Content-Type" content="text/html; charset=utf-8"> <title>嵌入式css样式</title> </head> <body> <p>11,<dazi>我变大了</dazi>、你大便了;<span>蓝色的</span>,111、<xxx>红色的</xxx>。其他都是绿色的!</p> </body> </html>
submitReset Code
ChapterCourseware