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. 

Related articles:

IE and FireFox on the problem of insufficient support for CSS 2 Summary
  [] Introduction to the development of CSS 2.0 browser Although manufacturers have been strongly supported and in many respects, there is still insufficient information and did not fully standardized.    Web site designers now commonly used methods or Hack CSS CSS document prepared ...
On page design skills: path out of the confusion
  If you are just beginning to contact Web Design, is not always happen?    Do a good job in their own homepage on the machines can be normal here, and the pages to a server that will always see a picture, css style sheet errors such as failure.    Under such circumstances b...
Form a huge production techniques website (thematic)
  Will be on the content of certain specific firms are ranked on the rules constituted a form.    Both in daily life and work, or in a website design, the forms are generally allowed to make the information more easily understood.    HTML has a strong function of the form s...
ASP.NET AJAX entry Series (10): Timer controls simple to use
  In this paper, through a simple example, the Web page in a certain time interval, partial refresh, to learn about the services ASP.NET AJAX-Timer controls simple to use.    Main content    Timer controls simple to use    1.    Add a new page and swi...
The key features of Web 2.0
  The network industry spent a lot of time and rendering it web2.0 definition of the DNA pattern.    But when we tried to catch up with those on the fast-growing and successful web2.0 lucky ones, we need to pay attention to actually create significant new value of this part of the DN...