aboutsummaryrefslogtreecommitdiff
path: root/files/zh-cn/glossary/attribute/index.html
blob: f56ff7465ea677d71e03a4a2cafc8aded180fe6f (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
---
title: Attribute
slug: Glossary/Attribute
tags:
  - API
  - HTML
translation_of: Glossary/Attribute
---
<p><span class="glossaryLink new"><strong>Attribute</strong></span> (标签属性)用于拓展HTML  <a href="https://developer.mozilla.org/en-US/docs/Glossary/tag" title="tag: In HTML a tag is used for creating an element.  The name of an HTML element is the name used in angle brackets such as &lt;p> for paragraph.  Note that the end tag's name is preceded by a slash character, &quot;&lt;/p>&quot;, and that in empty elements the end tag is neither required nor allowed. If attributes are not mentioned, default values are used in each case.">tag</a>, 可改变标签行为或提供元数据,属性总是以<code>name = value</code>的格式(属性的识别码后接与之相关的值)</p>

<h2 id="深入了解">深入了解</h2>

<h3 id="技术参考"><span style="font-size: 27.4286px;">技术参考</span></h3>

<ul>
 <li><a href="/en-US/docs/Web/HTML/Attributes">HTML attribute reference</a></li>
 <li>关于 HTML's <a href="/en-US/docs/Web/HTML/Global_attributes">global attributes</a> 的信息</li>
</ul>