aboutsummaryrefslogtreecommitdiff
path: root/files/zh-cn/glossary/element/index.html
diff options
context:
space:
mode:
authorFlorian Dieminger <me@fiji-flo.de>2021-02-11 18:29:51 +0100
committerGitHub <noreply@github.com>2021-02-11 18:29:51 +0100
commit2bc5610921312613f8623f7ed347aa576689b2b6 (patch)
treef17a7a00e232c97d1335ff3cb24dbcfafacfe141 /files/zh-cn/glossary/element/index.html
parent964decad361766e85d928a56f0ab80af0e75c172 (diff)
parentfc56124ac4eda6b3f0349c8a16fa750f27b4c7d6 (diff)
downloadtranslated-content-2bc5610921312613f8623f7ed347aa576689b2b6.tar.gz
translated-content-2bc5610921312613f8623f7ed347aa576689b2b6.tar.bz2
translated-content-2bc5610921312613f8623f7ed347aa576689b2b6.zip
Merge pull request #32 from fiji-flo/unslugging-zh-cn
Unslugging zh cn
Diffstat (limited to 'files/zh-cn/glossary/element/index.html')
-rw-r--r--files/zh-cn/glossary/element/index.html23
1 files changed, 23 insertions, 0 deletions
diff --git a/files/zh-cn/glossary/element/index.html b/files/zh-cn/glossary/element/index.html
new file mode 100644
index 0000000000..c5ac84aedb
--- /dev/null
+++ b/files/zh-cn/glossary/element/index.html
@@ -0,0 +1,23 @@
+---
+title: Element(元素)
+slug: Glossary/Element
+tags:
+ - HTML
+ - XML
+ - 术语
+ - 编程
+translation_of: Glossary/Element
+original_slug: Glossary/元素
+---
+<p><strong>元素</strong>是网页的一部分,在 {{glossary("XML")}} 和 {{glossary("HTML")}} 中,一个元素可以包含一个数据项,或是一块文本,或是一张照片,亦或是什么也不包含。 一个典型的元素包括一个具有一些{{glossary("attribute", "属性")}}的开始标签,中间的文本内容和一个结束标签。<br>
+ <img alt="Example: in &lt;p class=&quot;nice&quot;>Hello world!&lt;/p>, '&lt;p class=&quot;nice&quot;>' is an opening tag, 'class=&quot;nice&quot;' is an attribute and its value, 'Hello world!' is enclosed text content, and '&lt;/p>' is a closing tag." src="https://mdn.mozillademos.org/files/7659/anatomy-of-an-html-element.png" style="height: 181px; width: 609px;"></p>
+
+<p>元素和{{glossary("tag", "标签")}}不是同一种概念。源代码中的标签用来标识元素的开始或结束,而元素是文档对象模型({{Glossary("DOM")}})中的一部分,文档对象模型会被{{glossary("browser", "浏览器")}}渲染、展示为页面。</p>
+
+<h2 id="相关信息">相关信息</h2>
+
+<ul>
+ <li><a href="https://wiki.developer.mozilla.org/en-US/docs/Learn/HTML/Introduction_to_HTML/Getting_started">开始学习 HTML</a></li>
+ <li><a href="https://wiki.developer.mozilla.org/en-US/docs/Web/Web_Components/Using_custom_elements">自定义元素(Custom elements)</a></li>
+ <li>{{domxref("Element")}} 接口,在 DOM 中表示一个元素</li>
+</ul>