@@ -83,22 +83,22 @@ <h5 id="addhelptext">Add help text</h5>
8383 < p > Include a label in the < code > <!--#<dd>--> </ code > element with a matching < code > for</ code > attribute to place help text beneath the input:</ p >
8484
8585 < pre > < code class ='language-html ' lang ='html '> < escape >
86- < form class ="semanticForms ">
86+ < form class ="semanticForms " method =" post " >
8787 < dl >
8888 < dt > < label for ="password "> Password</ label > </ dt >
8989 < dd >
90- < input id ="password " name ="password " type ="password " placeholder ="Enter a password " minlength ="8 " required >
90+ < input id ="password " name ="password " type ="password " placeholder ="Enter a password " minlength ="8 " required autocomplete =" off " >
9191 < label for ="password "> Must be at least 8 characters long.</ label >
9292 </ dd >
9393 </ dl >
9494</ form >
9595</ escape > </ code > </ pre >
9696
97- < form class ="semanticForms ">
97+ < form class ="semanticForms " method =" post " >
9898 < dl >
9999 < dt > < label for ="password "> Password</ label > </ dt >
100100 < dd >
101- < input id ="password " name ="password " type ="password " placeholder ="Enter a password " minlength ="8 " required >
101+ < input id ="password " name ="password " type ="password " placeholder ="Enter a password " minlength ="8 " required autocomplete =" off " >
102102 < label for ="password "> Must be at least 8 characters long.</ label >
103103 </ dd >
104104 </ dl >
@@ -310,13 +310,13 @@ <h5 id="nongroupedbuttons">Non-grouped example</h5>
310310 < p > Nothing fancy here:</ p >
311311
312312 < pre > < code class ='language-html ' lang ='html '> < escape >
313- < form class ="semanticForms ">
313+ < form class ="semanticForms " method =" post " >
314314 < button type ="submit " name ="submit "> Non-grouped submit button</ button >
315315 < button type ="submit " name ="submit "> Another one</ button >
316316</ form >
317317 </ escape > </ code > </ pre >
318318
319- < form class ="semanticForms ">
319+ < form class ="semanticForms " method =" post " >
320320 < button type ="submit " name ="submit "> Non-grouped submit button</ button >
321321 < button type ="submit " name ="submit "> Another one</ button >
322322 </ form >
@@ -326,7 +326,7 @@ <h6 id="buttongroupex">Button groups</h6>
326326 < p > Driven by flexbox to intelligently align the buttons based on how many are in the group:</ p >
327327
328328 < pre > < code class ='language-html ' lang ='html '> < escape >
329- < form class ="semanticForms ">
329+ < form class ="semanticForms " method =" post " >
330330 <!-- aligns left/right -->
331331 < menu >
332332 < li > < button type ="submit " name ="submit "> Button 1</ button > </ li >
@@ -342,7 +342,7 @@ <h6 id="buttongroupex">Button groups</h6>
342342</ form >
343343 </ escape > </ code > </ pre >
344344
345- < form class ="semanticForms ">
345+ < form class ="semanticForms " method =" post " >
346346 <!-- aligns left/right -->
347347 < menu >
348348 < li > < button type ="submit " name ="submit "> Button 1</ button > </ li >
@@ -464,22 +464,22 @@ <h4 id="validationstyles">Validation styles</h4>
464464 < p > You can set a paragraph of text below a field to only appear when a field is invalid with the < code > data-invalid-text</ code > attribute:</ p >
465465
466466 < pre > < code class ='language-html ' lang ='html '> < escape >
467- < form class ="semanticForms ">
467+ < form class ="semanticForms " method =" post " >
468468 < dl >
469469 < dt > < label for ="password_validation "> Password label</ label > </ dt >
470470 < dd >
471- < input type ="password " name ="password " id ="password_validation " minlength ="8 ">
471+ < input type ="password " name ="password " id ="password_validation " minlength ="8 " autocomplete =" off " >
472472 < p data-invalid-text > Password must be at least 8 characters long.</ p >
473473 </ dd >
474474 </ dl >
475475</ form >
476476 </ escape > </ code > </ pre >
477477
478- < form class ="semanticForms ">
478+ < form class ="semanticForms " method =" post " >
479479 < dl >
480480 < dt > < label for ="password_validation "> Password label</ label > </ dt >
481481 < dd >
482- < input type ="password " name ="password " id ="password_validation " minlength ="8 ">
482+ < input type ="password " name ="password " id ="password_validation " minlength ="8 " autocomplete =" off " >
483483 < p data-invalid-text > Password must be at least 8 characters long.</ p >
484484 </ dd >
485485 </ dl >
0 commit comments