-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy path12.html
More file actions
56 lines (55 loc) · 1.18 KB
/
12.html
File metadata and controls
56 lines (55 loc) · 1.18 KB
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
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
<!--
HTML 计算机代码元素
-->
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<title>Title</title>
</head>
<body>
<!--
HTML 计算机代码格式
通常,HTML 使用可变的字母尺寸,以及可变的字母间距。
在显示计算机代码示例时,并不需要如此。
<kbd>, <samp>, 以及 <code> 元素全都支持固定的字母尺寸和间距。
-->
<p>To open a file, select:</p>
<p><kbd>File | Open...</kbd></p>
<!--
HTML <samp> 元素定义计算机输出示例:
-->
<samp>
demo.example.com login: Apr 12 09:10:17
Linux 2.6.10-grsec+gg3+e+fhs6b+nfs+gr0501+++p3+c4a+gr2b-reslog-v6.189
</samp>
<!--
HTML <code> 元素定义编程代码示例:
<code> 元素不保留多余的空格和折行:
-->
<br/>
<code>
var person = { firstName:"Bill", lastName:"Gates", age:50, eyeColor:"blue" }
</code>
<!--
如需解决该问题,您必须在 <pre> 元素中包围代码:
-->
<p>Coding Example:</p>
<code>
<pre>
var person = {
firstName:"Bill",
lastName:"Gates",
age:50,
eyeColor:"blue"
}
</pre>
</code>
<!--
HTML <var> 元素定义数学变量:
-->
<br/>
<p>Einstein wrote:</p>
<p><var>E = m c<sup>2</sup></var></p>
</body>
</html>