Skip to content

Commit 95621b7

Browse files
committed
doc: add html_xmlns,iframe_height,iframe_name,iframe_referrerpolicy,iframe_sandbox,iframe_src,iframe_srcdoc,iframe_width document.
1 parent b863570 commit 95621b7

16 files changed

+460
-19
lines changed

docs/tags/form.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -36,6 +36,7 @@ HTML \<form> 标签
3636
| Element | ![chrome][1] | ![edge][2] | ![firefox][3] | ![safari][4] | ![opera][5] |
3737
| ------- | --- | --- | --- | --- | --- |
3838
| \<form> | Yes | Yes | Yes | Yes | Yes |
39+
<!--rehype:style=width: 100%; display: inline-table;-->
3940

4041
## 属性 Attributes
4142

@@ -50,6 +51,7 @@ HTML \<form> 标签
5051
| [novalidate](./form_novalidate.md) | novalidate | 指定提交时不应验证表单|
5152
| [rel](./form_rel.md) | external<br >help<br >license<br >next<br >nofollow<br >noopener<br >noreferrer<br >opener<br >prev<br >search | 指定链接资源和当前文档之间的关系|
5253
| [target](./form_target.md) | \_blank<br >\_self<br >\_parent<br >\_top | 指定在哪里显示提交表单后收到的响应|
54+
<!--rehype:style=width: 100%; display: inline-table;-->
5355

5456
## 全局属性
5557

docs/tags/form_name.md

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -31,6 +31,7 @@ HTML \<form> name 属性
3131
| 属性 Attribute | ![chrome][1] | ![edge][2] | ![firefox][3] | ![safari][4] | ![opera][5] |
3232
| ------- | --- | --- | --- | --- | --- |
3333
| name | Yes | Yes | Yes | Yes | Yes |
34+
<!--rehype:style=width: 100%; display: inline-table;-->
3435

3536

3637
## 语法
@@ -44,3 +45,10 @@ HTML \<form> name 属性
4445
| 值 Value | 描述 Description |
4546
| ----- | ----- |
4647
| *text* | 指定表单的名称 |
48+
49+
[1]: ../assets/chrome.svg
50+
[2]: ../assets/edge.svg
51+
[3]: ../assets/firefox.svg
52+
[4]: ../assets/safari.svg
53+
[5]: ../assets/opera.svg
54+

docs/tags/head.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -41,6 +41,7 @@ HTML \<head> 标签
4141
| Element | ![chrome][1] | ![edge][2] | ![firefox][3] | ![safari][4] | ![opera][5] |
4242
| ----- | --- | --- | --- | --- | --- |
4343
| \<head> | Yes | Yes | Yes | Yes | Yes |
44+
<!--rehype:style=width: 100%; display: inline-table;-->
4445

4546
## 全局属性
4647

docs/tags/header.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -36,6 +36,7 @@ HTML \<header> 标签
3636
| Element | ![chrome][1] | ![edge][2] | ![firefox][3] | ![safari][4] | ![opera][5] |
3737
| ----- | --- | --- | --- | --- | --- |
3838
| \<header> | 5.0 | 9.0 | 4.0 | 5.0 | 11.1 |
39+
<!--rehype:style=width: 100%; display: inline-table;-->
3940

4041
## 全局属性
4142

docs/tags/hn.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,7 @@ HTML \<h1> to \<h6> Tags
2828
| Element | ![chrome][1] | ![edge][2] | ![firefox][3] | ![safari][4] | ![opera][5] |
2929
| ----- | --- | --- | --- | --- | --- |
3030
| \<h1> - \<h6> | Yes | Yes | Yes | Yes | Yes |
31+
<!--rehype:style=width: 100%; display: inline-table;-->
3132

3233
## 全局属性
3334

docs/tags/hr.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,7 @@ HTML \<hr> 标签
2626
| Element | ![chrome][1] | ![edge][2] | ![firefox][3] | ![safari][4] | ![opera][5] |
2727
| ------- | --- | --- | --- | --- | --- |
2828
| \<hr> | Yes | Yes | Yes | Yes | Yes |
29+
<!--rehype:style=width: 100%; display: inline-table;-->
2930

3031
## 全局属性
3132

docs/tags/html.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -31,12 +31,14 @@ HTML \<html> 标签
3131
| Element | ![chrome][1] | ![edge][2] | ![firefox][3] | ![safari][4] | ![opera][5] |
3232
| ------- | --- | --- | --- | --- | --- |
3333
| \<html> | Yes | Yes | Yes | Yes | Yes |
34+
<!--rehype:style=width: 100%; display: inline-table;-->
3435

3536
## 属性 Attributes
3637

3738
| 属性 || 描述 |
3839
| ---- | ---- | ---- |
3940
| [xmlns](./html_xmlns.md) | https://www.w3.org/1999/xhtml | 指定 XML 命名空间属性(如果您需要您的内容符合 XHTML) |
41+
<!--rehype:style=width: 100%; display: inline-table;-->
4042

4143
## 全局属性
4244

docs/tags/html_xmlns.md

Lines changed: 56 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,58 @@
1-
html_xmlns.md
1+
HTML \<html> xmlns 属性
22
===
33

4-
欢迎您编辑 <a target="__blank" href="https://github.com/jaywcjlove/html-tutorial/blob/main/docs/tags/html_xmlns.md">docs/tags/html_xmlns.md</a> 文件,共建 HTML Tutorial 文档。
4+
## 示例
5+
6+
一个简单的 XHTML 文档,具有最少的必需标记:
7+
8+
```html idoc:preview:iframe
9+
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
10+
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
11+
12+
<html xmlns="http://www.w3.org/1999/xhtml">
13+
<head>
14+
<title>Title of the document</title>
15+
</head>
16+
17+
<body>
18+
文本内容......
19+
</body>
20+
21+
</html>
22+
```
23+
24+
## 定义和用法
25+
26+
`xmlns` 属性指定文档的 `xml` 命名空间。
27+
28+
**注意:** `xmlns` 属性在 `XHTML` 中是必需的,在 `HTML 4.01` 中无效,在 `HTML5` 中是可选的。
29+
30+
**注意:**`XHTML` 文档中缺少 `xmlns` 属性时,`<http://w3.org>` 上的 HTML 验证器不会报错。 这是因为命名空间 `xmlns=http://www.w3.org/1999/xhtml` 是默认的,即使你不包含它也会被添加到 `<html>` 标签中。
31+
32+
## 浏览器支持
33+
34+
| Element | ![chrome][1] | ![edge][2] | ![firefox][3] | ![safari][4] | ![opera][5] |
35+
| --------- | --- | --- | --- | --- | --- |
36+
| xmlns | Yes | Yes | Yes | Yes | Yes |
37+
<!--rehype:style=width: 100%; display: inline-table;-->
38+
39+
## 语法
40+
41+
```html
42+
<html xmlns="http://www.w3.org/1999/xhtml">
43+
```
44+
45+
## 属性值
46+
47+
| 值 Value | 描述 Description |
48+
| ----- | ----- |
49+
| http://www.w3.org/1999/xhtml | 要使用的名称空间(用于 XHTML 文档) |
50+
<!--rehype:style=width: 100%; display: inline-table;-->
51+
52+
53+
[1]: ../assets/chrome.svg
54+
[2]: ../assets/edge.svg
55+
[3]: ../assets/firefox.svg
56+
[4]: ../assets/safari.svg
57+
[5]: ../assets/opera.svg
58+

docs/tags/i.md

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3,11 +3,11 @@ HTML \<i> 标签
33

44
## 示例
55

6-
标记从文档中的普通散文出发的文本
6+
标记从文档中的普通的文本
77

88
```html idoc:preview:iframe
9-
<p><i>Lorem ipsum</i> is the most popular filler text in history.</p>
10-
<p>The <i>RMS Titanic</i>, a luxury steamship, sank on April 15, 1912 after striking an iceberg.</p>
9+
<p>
10+
HTML(<i>超文本标记语言</i>——HyperText Markup Language)是构成 Web 世界的一砖一瓦。它定义了网页内容的含义和结构。除 <i>HTML</i> 以外的其它技术则通常用来描述一个网页的表现与展示效果(如 <i>CSS</i>),或功能与行为(如 <i>JavaScript</i>)</p>
1111
```
1212
<!--rehype:style=min-height: 120px;-->
1313

@@ -30,6 +30,7 @@ HTML \<i> 标签
3030
| Element | ![chrome][1] | ![edge][2] | ![firefox][3] | ![safari][4] | ![opera][5] |
3131
| ------- | --- | --- | --- | --- | --- |
3232
| \<i> | Yes | Yes | Yes | Yes | Yes |
33+
<!--rehype:style=width: 100%; display: inline-table;-->
3334

3435
## 全局属性
3536

docs/tags/iframe_height.md

Lines changed: 46 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,48 @@
1-
iframe_height.md
1+
HTML \<iframe> height 属性
22
===
33

4-
欢迎您编辑 <a target="__blank" href="https://github.com/jaywcjlove/html-tutorial/blob/main/docs/tags/iframe_height.md">docs/tags/iframe_height.md</a> 文件,共建 HTML Tutorial 文档。
4+
## 示例
5+
6+
指定高度和宽度为 `200` 像素的 \<iframe>:
7+
8+
```html idoc:preview:iframe
9+
<iframe
10+
src="./iframe.html"
11+
width="200"
12+
height="200"
13+
>
14+
</iframe>
15+
```
16+
17+
## 定义和用法
18+
19+
`height` 属性指定 `<iframe>` 的高度,以像素为单位。
20+
21+
默认高度为 `150` 像素。
22+
23+
## 浏览器支持
24+
25+
| 属性 Attribute | ![chrome][1] | ![edge][2] | ![firefox][3] | ![safari][4] | ![opera][5] |
26+
| ------- | --- | --- | --- | --- | --- |
27+
| height | Yes | Yes | Yes | Yes | Yes |
28+
<!--rehype:style=width: 100%; display: inline-table;-->
29+
30+
## 语法
31+
32+
```html
33+
<iframe height="pixels">
34+
```
35+
36+
## 属性值
37+
38+
| 值 Value | 描述 Description |
39+
| ----- | ----- |
40+
| *pixels* | 内联帧的高度(以像素为单位)(例如 `height="100"`|
41+
<!--rehype:style=width: 100%; display: inline-table;-->
42+
43+
[1]: ../assets/chrome.svg
44+
[2]: ../assets/edge.svg
45+
[3]: ../assets/firefox.svg
46+
[4]: ../assets/safari.svg
47+
[5]: ../assets/opera.svg
48+

0 commit comments

Comments
 (0)