Advertisement
l-kikov

Few html5 forms

Dec 6th, 2015
38
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
HTML 5 1.07 KB | None | 0 0
  1. <!DOCTYPE html>
  2.  
  3. <html>
  4. <head>
  5.     <meta name="viewport" content="width=device-width" />
  6.     <link href="~/Content/JsDemoStyle.min.css" rel="stylesheet" />
  7.     <title>Suck</title>
  8. </head>
  9. <body>
  10.     <div>
  11.    
  12.         <form id="contact" class="johnyRambo" method="post" action="">
  13.             <label for="firstName">First name</label>
  14.             <input type="text" name="firstName" placeholder="Enter name"/>
  15.  
  16.             <label for="password">Password</label>
  17.             <input type="password" name="password" />
  18.  
  19.             <label for="firstName">First name</label>
  20.             <input type="text" name="firstName" autofocus="autofocus"/>
  21.  
  22.             <label for="email">Email</label>
  23.             <input type="email" required name="email" autofocus="autofocus" />
  24.  
  25.             <label for="HasAPattern">With regex</label>
  26.             <input type="text" name="HasAPattern"
  27.                   pattern="\w{3}" title="Enter 3 characters" placeholder="Enter 3 chars"/>
  28.  
  29.             <input type="submit" value="Click this!" />
  30.         </form>
  31.  
  32.     </div>
  33. </body>
  34. </html>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement