亚洲国产日韩欧美一区二区三区,精品亚洲国产成人av在线,国产99视频精品免视看7,99国产精品久久久久久久成人热,欧美日韩亚洲国产综合乱

external css style

External css style (also called external style) is to write the css code in a separate external file. This css style file has the extension name of ".css" and is in <head> (not in <style> tag) Use the <link> tag to link the css style file to the HTML file, as shown in the following code:

<link href="base.css" rel="stylesheet" type="text/css" />

Note:

1. The name of the css style file begins with Named with English letters of meaning, such as main.css.

2. rel="stylesheet" type="text/css" is a fixed writing method that cannot be modified.

3. The <link> tag position is generally written within the <head> tag.

body { line-height: 130pt}
H1,H2,H3,H4,H5,H6 {
color: red;
text-decoration: underline;
font-family: " 黑體 "
}
b {
font-style: italic;
color: #FF3333;
text-decoration: underline
}

We see that only the < STYLE> and comment tags are missing, and the rest of the external style sheet has not changed.

Continuing Learning
||
<!doctype html> <html> <head> <meta charset="UTF-8"> <title></title> <link href="mycss.css" type="text/css" rel="stylesheet"> </head> <body> <!--p 標(biāo)簽中嵌套了一個(gè) a 標(biāo)簽,在下面的 css 引用過(guò)程中我們可以看到的.pclass a 即為 class 被用作派生選擇器--> <p class="pclass">這是一個(gè) class 顯示效果<a href="hhtp://ipnx.cn">效果</a></p> <div class="divclass">hello div</div> </body> </html>
submitReset Code