[Project] Contact Lens order form (Build a survey form or order form)

 
https://codepen.io/wincooo/pen/ZErBKQN


  <label for="name"> Name </label>

  <input id="name" type="text" name="name" placeholder="Contact lens name" required> </input>


for labeled head should be equal to the id attribute of the input element to bind them together. 

type="text" this allows us to write text in the input field

name="name" name attribute is what we want the server to recognize when we submit the value 

" placeholder=" is the attribute that will show an example of the value to display an input field when it's empty. it provides a brief hint to the user as to what the input is expected to look like in this field 

required  this is essentially says that if input field is empty it's not valid so there has to be a value in that input field. 


Popular posts from this blog

[Python] Dictionary

[Visual Design 2/3]

[JavaScript] For loop , Function