The tutorials found herein have been written for clarification of existing W3C HTML 4.01 (and, by extension, XHTML 1.0 as text/html) documentation and use real-world examples. W3C HTML 5 (Draft) clarification and examples are included.

Sections of elements are below. The attributes, too. Some section names have been taken from HTML 5; some remain HTML 4.01. Text-Level Elements - in HTML 5 - have become Text-Level Semantics but some were reclassified as Grouping or Phrasing Content; List elements are Grouping Content.
id
The id attribute assigns a unique identifier to an element. This name must be used used once only in a document.
id attribute has several rôles in HTML:Object element name.id attribute is used in multiple instances. Dynamically-generated content, e.g., includes, or scripts/CSS-hidden content where numerous elements are identified by an id attribute are—Usually—responsible.id styles on all elements when multiple id attributes are assigned in a single page. [See Multiple Identifiers (ID) CSS test.]id attributes assigned—on a single page—has two different results: Opera (Mac/PC) renders the “Sixth” anchor whereas all other tested browsers (Safari, Firefox/Mac, Firefox/PC, IE6 and IE7) rendered the “First” anchor. [See Multiple Identifiers (ID) Anchor test.]id attributes cause failures.id attributes cause failures.Object element name: Multiple id attributes cause failures.id attributes cause failures.id
<div id="fluidity">
div#fluidity { position: relative; margin: 25px 240px 30px 360px; padding: 0 10px 0 20px; }
ID attributes may only be used once on a page.
<h3 id="directorySubHeader"> <code>ID</code> attributes may only be used once on a page.</h3>
h3#directorySubHeader { margin-bottom: 25px; margin-left: 8px; color: #000; font: 1.4em Palatino, "Times New Roman", Times, serif; }
ID 属性应该只能使用一次的网页上.
<h3 id="月光"><code>ID</code> <span lang="zh-cn">属性应该只能使用一次的网页上</span>.</h3>
#月光 { padding: 20px 0 20px 30px; color: #a60000; font-size: 3em; } /* #a60000 = 8.01:1/Passed at Level AAA */
charset=utf-8 used.ID) Values (HTML 5 Version).ID) Values (HTML 4.01/Strict Version).ID) Values (HTML 4.01/Transitional Version).ID) Values (xHTML 1.0/Strict Version).ID) Values (Hack Version).DocTypes are noted.names, classes, and IDs, are written so that the first character is a letter [ a-z and A-Z ] or hyphen [ - ] or underscore [ _ ] but cannot start with a digit [ 0-9 ], or a hyphen followed by a digit (e.g, -9).The Elementary Standards: A Compendium of articles, tutorials and reference material regarding Web Standards, HTML and CSS Copyright ©2005-2010. All work is published by Sean Fraser under a Creative Commons License. All Rights Reserved.