HTML name, id, class difference is introduced

In a page, there are a lot of control elements (or label). In order to more convenient operation these tags, you need to give these label an identity card.

the use of attributes are: name, id, class

1. The name code is as follows:

<Input type="radio" name='sex'/>Male <Input type="radio" name='sex'/>Female 3. Quickly get a name the same set of labels: get has the same name tags, operate together, such as: change the properties, events, etc.;

Script Home, is a commitment to share good utility software, network material, station source, template procedures, information technology, network technology, personal web blog. This website aims to establish with more people sharing networks to bring the joy and wonderful!