search
  • Sign In
  • Sign Up
Password reset successful

Follow the proiects vou are interested in andi aet the latestnews about them taster

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.

new file
<!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>
Reset Code
Automatic operation
submit
Preview Clear