Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR HTML

label input html

<!-- Implicit -->
<label>First Name
  <input type="text" name="first_name" />
</label>

<!-- Explicit -->
<label for="firstName">First Name</label>
<input type="text" id="firstName" name="first_name">
<!-- 
Note: the 'for' attribute is mapped to the 'id' and NOT name or type
So if id='BobSponge', then for='BobSponge' 
-->
 
PREVIOUS NEXT
Tagged: #label #input #html
ADD COMMENT
Topic
Name
9+3 =