-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy path14.html
More file actions
40 lines (39 loc) · 926 Bytes
/
14.html
File metadata and controls
40 lines (39 loc) · 926 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
<!--
HTML CSS
通过使用 HTML4.0,所有的格式化代码均可移出 HTML 文档,然后移入一个独立的样式表。
-->
<!DOCTYPE html>
<html lang="en">
<head>
<!--例一-->
<style type="text/css">
h1 {color: red}
p {color: blue}
</style>
<!--例二-->
<meta http-equiv="Content-Type" content="text/html; charset=gb2312" />
<meta http-equiv="Content-Language" content="zh-cn" />
<!--例三-->
<link rel="stylesheet" type="text/css" href="/html/csstest1.css" >
<meta charset="UTF-8">
<title>Title</title>
</head>
<body>
<!--
本例演示如何使用添加到 <head> 部分的样式信息对 HTML 进行格式化。
-->
<h1>header 1</h1>
<p>A paragraph.</p>
<!--
本例演示如何使用样式属性做一个没有下划线的链接。
-->
<a href="/example/html/lastpage.html" style="text-decoration:none">
这是一个链接!
</a>
<!--
本例演示如何 <link> 标签链接到一个外部样式表。
-->
<h1>我通过外部样式表进行格式化。</h1>
<p>我也一样!</p>
</body>
</html>