File tree Expand file tree Collapse file tree 1 file changed +17
-8
lines changed 
html/forms/form-validation Expand file tree Collapse file tree 1 file changed +17
-8
lines changed Original file line number Diff line number Diff line change 11<!DOCTYPE html>  
22< html  lang ="en-us "> 
33  < head > 
4-     < meta  charset ="utf-8 "> 
5-     < meta  name ="viewport " content ="width=device-width "> 
4+     < meta  charset ="utf-8 "  / >
5+     < meta  name ="viewport " content ="width=device-width "  / >
66    < title > Favorite fruit length constraint</ title > 
77    < style > 
88      input : invalid  {
1414      }
1515
1616      div  {
17-         margin-bottom :  10px  ;
17+         margin-bottom :  1rem  ;
18+       }
19+       form  {
20+         margin :  2rem   0  2rem   0 ;
1821      }
1922    </ style > 
2023  </ head > 
2124
22- < body > 
25+    < body > 
2326    < form > 
2427      < div > 
2528        < label  for ="choose "> Would you prefer a banana or a cherry?</ label > 
26-         < input  id ="choose " name ="i_like " required  minlength ="6 " maxlength ="6 "> 
29+         < input  id ="choose " name ="i_like " required  minlength ="6 " maxlength ="6 "  / >
2730      </ div > 
2831      < div > 
2932        < label  for ="number "> How many would you like?</ label > 
30-         < input  type ="number " id ="number " name ="amount " value ="1 " min ="1 " max ="10 "> 
33+         < input 
34+           type ="number "
35+           id ="number "
36+           name ="amount "
37+           value ="1 "
38+           min ="1 "
39+           max ="10 "
40+         /> 
3141      </ div > 
3242      < div > 
3343        < button > Submit</ button > 
3444      </ div > 
3545    </ form > 
36- </ body > 
37- 
46+   </ body > 
3847</ html > 
    
 
   
 
     
   
   
          
     
  
    
     
 
    
      
     
 
     
    You can’t perform that action at this time.
  
 
    
  
     
    
      
        
     
 
       
      
     
   
 
    
    
  
 
  
 
     
    
0 commit comments