Several less common HTML tags
Related Tags:
Several less common html Tag, you see there用得着place.
1. Label
Label Input elements are used to mark the presentation. Label "For" Input elements and attributes to the id line. Benefits: Click Tips text, automatically Focus on the corresponding input elements. For Radio, Checkbox click region, particularly such a small component particularly useful:
Color: <br />
<input Type="checkbox" name="color" id="color_r" value="red"> <label for="color_r"> red </ label> <br>
<input Type="checkbox" name="color" id="color_g" value="green"> <label for="color_g"> green </ label> <br>
<input Type="checkbox" name="color" id="color_b" value="blue"> <label for="color_x"> blue </ label> <br> <! - For if not, and ID match, click text is of no use ->
2. FieldSet & Legend
FieldSet to Clear to a group of Input controls as one group (the equivalent VB / VC inside Control Group), and Legend Group is the title (equivalent to the title of Group controls). For example:
<fieldset Style="width:20%">
<legend> Person </ legend>
<label For="name"> Name </ label> <input type="text" id="name" />
<fieldset>
<legend> Gender </ legend>
<input Type="radio" name="gender" id="male" /> <label for="male"> Male </ label> <br>
<input Type="radio" name="gender" id="female" /> <label for="female"> Female </ label>
</ Fieldset>
</ Fieldset>
3. Optgroup
Select the option for the group inside. For example:
<select Name="age">
<optgroup Label="baby">
<option> 0-2 </ option>
<option> 3-5 </ option>
</ Optgroup>
<optgroup Label="kid">
<option> 6-10 </ option>
<option> 10-15 </ option>
</ Optgroup>
<optgroup Label="adult">
<option> 16-30 </ option>
<option> 31-40 </ option>
<option> 41-60 </ option>
</ Optgroup>
</ Select>
Note: The above code can be directly copied to generate a html document operation, testing results.
- HTML forms Senior Guide
- HTML text Senior Guide
- Beginners Guide to HTML - HTML document as a whole
- Analysis Html page: HTML Parser trial
- HTML tags and attributes of the Semantic
- Why should discard the HTML
- Intermediate HTML tutorial Javascript
- HTML Tutorial - HTML basic structure
- HTML primary Guide List
- HTML Image primary Guide
- Html file in the introduction of other html document Methods
- HTML paragraphs primary Guide
- Guide to HTML primary links
- Intermediate HTML form guide
- HTML Tutorial - HTML entry
- HTML ? ?-? ?
- HTML High statement Guide
- The evolution of HTML
- Html ? W ? W ? HTML?Z ?
- HTML Video Tutorial: HTML basic structure




