aboutsummaryrefslogtreecommitdiff
path: root/files/zh-tw/glossary/element
diff options
context:
space:
mode:
authorPeter Bengtsson <mail@peterbe.com>2020-12-08 14:43:23 -0500
committerPeter Bengtsson <mail@peterbe.com>2020-12-08 14:43:23 -0500
commit218934fa2ed1c702a6d3923d2aa2cc6b43c48684 (patch)
treea9ef8ac1e1b8fe4207b6d64d3841bfb8990b6fd0 /files/zh-tw/glossary/element
parent074785cea106179cb3305637055ab0a009ca74f2 (diff)
downloadtranslated-content-218934fa2ed1c702a6d3923d2aa2cc6b43c48684.tar.gz
translated-content-218934fa2ed1c702a6d3923d2aa2cc6b43c48684.tar.bz2
translated-content-218934fa2ed1c702a6d3923d2aa2cc6b43c48684.zip
initial commit
Diffstat (limited to 'files/zh-tw/glossary/element')
-rw-r--r--files/zh-tw/glossary/element/index.html20
1 files changed, 20 insertions, 0 deletions
diff --git a/files/zh-tw/glossary/element/index.html b/files/zh-tw/glossary/element/index.html
new file mode 100644
index 0000000000..0b455c993b
--- /dev/null
+++ b/files/zh-tw/glossary/element/index.html
@@ -0,0 +1,20 @@
+---
+title: 元素
+slug: Glossary/Element
+tags:
+ - HTML
+ - 術語
+translation_of: Glossary/Element
+---
+<p>元素(element)是網頁結構的一部分。在 XML 與 HTML 中,元素可能包含資料清單、文字、圖片,或是也可能不包含東西。典型的元素會包含一個有些許屬性(attributes)的開始標籤(opening tag)、被包覆住的文字內容,以及一個結束標籤(closing tag)。<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("DOM")}} 的一部分。DOM,指文件物件模型(document object model),會由 {{glossary("browser")}} 將 DOM 呈現為網頁。</p>
+
+<h2 id="瞭解更多">瞭解更多</h2>
+
+<ul>
+ <li>The {{domxref("Element")}} interface, representing an element in the DOM.</li>
+ <li><a href="/zh-TW/docs/Web/Guide/HTML/Element">More details about elements.</a></li>
+ <li><a href="https://developer.mozilla.org/zh-TW/docs/Web/Web_Components/Custom_Elements">Web_Components/Custom_Elements</a></li>
+</ul>