label for file html code example
Example 1: input file define type
<input type="file" accept=".gif,.jpg,.jpeg,.png,.doc,.docx">
Example 2: label for attribute
<label for="username">Click me</label>
<input type="text" id="username">
<input type="file" accept=".gif,.jpg,.jpeg,.png,.doc,.docx">
<label for="username">Click me</label>
<input type="text" id="username">