Last Updated on April 26, 2023 by Roshan Parihar
HTML label tag is used to show labels of form elements.
Syntax
1 |
<label>put label name here..</label> |
1 2 3 4 5 6 7 8 9 10 11 |
</form> <label for="country">Select your State</label> <select name="country"> <option value="Uttar Pradesh">Uttar Pradesh</option> <option value="Bihar">Bihar</option> <option value="Madhya Pradesh">Madhya Pradesh</option> <option value="Chattisgarh">Chattisgarh</option> <option value="Orissa">Orissa</option> <option value="Andhra Pradesh">Andhra Pradesh</option> </select> </form> |
Output
You should also read
- HTML option tag and
- HTML select tag
Resources and References of HTML label tag
1. W3C Specification.
2. HTML living standard
3. W3C project using Github