From 218934fa2ed1c702a6d3923d2aa2cc6b43c48684 Mon Sep 17 00:00:00 2001 From: Peter Bengtsson Date: Tue, 8 Dec 2020 14:43:23 -0500 Subject: initial commit --- files/zh-tw/glossary/element/index.html | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) create mode 100644 files/zh-tw/glossary/element/index.html (limited to 'files/zh-tw/glossary/element') 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 +--- +

元素(element)是網頁結構的一部分。在 XML 與 HTML 中,元素可能包含資料清單、文字、圖片,或是也可能不包含東西。典型的元素會包含一個有些許屬性(attributes)的開始標籤(opening tag)、被包覆住的文字內容,以及一個結束標籤(closing tag)。
+ Example: in <p class="nice">Hello world!</p>, '<p class="nice">' is an opening tag, 'class="nice"' is an attribute and its value, 'Hello world!' is enclosed text content, and '</p>' is a closing tag.

+ +

元素與標籤是不同的概念。在原始碼中,標籤用來標注元素開始與結束,而元素其實是 {{Glossary("DOM")}} 的一部分。DOM,指文件物件模型(document object model),會由 {{glossary("browser")}} 將 DOM 呈現為網頁。

+ +

瞭解更多

+ + -- cgit v1.2.3-54-g00ecf