The tutorials found herein have been written for clarification of existing W3C HTML 5 and HTML 4.01 (and, by extension, xHTML 1.0 as text/html) specifications through the use of real-world examples.

Some section names have been taken from HTML 5; some remain HTML 4.01. Text-Level Elements in HTML 4.01 - have become Text-Level Semantics in HTML 5 but some were reclassified as Grouping or Phrasing Content; List elements are Grouping Content but shown here as “Lists”.
name
The name attribute gives the name of the form control, as used in form submission and in the form element’s elements object; and, in media types, it give the parameter’s name. It may be found assigned with the a, applet, button, form, frame, iframe, img, input, object, map, meta, param, select and textarea elements.
[Note: HTML 4 allowed id and name to be interchangeable. Therefore, HTML 5 has obsoleted name use for the a and img elements.]
name
[This is not an actual Applet. They don’t exist. And, if it was—Blacky's eyes would be very wide with Euphoria-Translucent.]
<applet code="Menehune.class" id="Transcendence" width="172" height="288" alt="Small black cat »
undulating in Fun House mirrors trance">
<param name="image" value="very-small-scaredy-cat.jpg">
<param name="overlay" value="burlesque-house_hour.png">
<param name="href" value="http://www.flying-monkeys-in-the-fun-house.com">
</applet>
<div id="hiloCoupon" class="shadowEffect">
<form id="hiloCoupon_form" method="post" action="/">
<div class="hiddenFields">
<input type="hidden" name="return" value="/confirmation/">
<input type="hidden" name="redirect_on_duplicate" value="/confirmation-previously_sent/">
<input type="hidden" name="ret" value="/contact/">
<input type="hidden" name="form_name" value="hiloCoupon_form">
<input type="hidden" name="id" value="hiloCoupon_form">
</div>
<p class="justify">The Hilo Shale & Novelty Company has had some Gift Cards printed. The illustration »
gives you a rough idea of what they look like. There is a place on each one for you to fill in the name of »
the person you wish to remember. You may use the Gift Card below. Or, simply ask us to send you one or »
more Gift Cards, present them to your friends and then give us a list of their names; or if you prefer »
send the names to us and we shall mail the cards. Their subscriptions will start with the next issue.</p>
<p class="justify">Sending for Gift Cards puts you under no obligation to order subscriptions, Season’s »
End is only 10 days off—mail the coupon at once.</p>
<fieldset>
<div id="certificate">
<p class="uppercase center largeText">Subscription Certificate</p>
<p class="uppercase center px14">Daily Issues - Beginning Next Issue</p>
<p class="center px14"><span class="oblique">of</span> <span class="uppercase"><span »
class="falseCaps">N</span>ovelty</span> in <span class="uppercase"><span »
class="falseCaps">H</span>istory</span> <label for="gift-recipient"><span »
class="oblique">for</span><br>
<input type="text" maxlength="256" id="gift-recipient" name="gift-recipient" »
value="" placeholder="Please enter your gift recipient's name here" autofocus></label></p>
<p class="oblique center px14">Presented—with the Season’s Best Wishes—by—</p>
<p id="textLevel-block_3em" class="center"><label for="gift-from">[<span id="textLevel-block_3em-span"> »
There is nothing for you to do but enjoy each issue</span>]<input type="text" maxlength="256" »
id="gift-from" name="gift-from" value="" placeholder="Please enter your name here"> »
</label></p>
</div>
</fieldset>
</form>
</div>
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.