033-forms.html 1.8 KB

1234567891011121314151617181920212223242526272829303132
  1. <!doctype html>
  2. <html>
  3. <head>
  4. <meta charset="utf-8">
  5. <title>033 form controls</title>
  6. <style>
  7. html, body { margin: 0; padding: 0; background: #ffffff; color: #202020; }
  8. body { font-family: sans-serif; font-size: 13px; padding: 10px; }
  9. h1 { font-size: 20px; margin: 0 0 6px 0; }
  10. p { margin: 0 0 10px 0; }
  11. .row { margin: 6px 0; }
  12. label { margin-right: 8px; }
  13. input, select, textarea, button { font-family: sans-serif; font-size: 13px; }
  14. #result { margin-top: 10px; padding: 8px; background: #eeeeee; color: #000000; font-family: monospace; font-weight: bold; }
  15. </style>
  16. </head>
  17. <body>
  18. <h1>033 &middot; form controls</h1>
  19. <p>Render check: text, password, checkbox, radio, select, textarea, buttons, disabled.</p>
  20. <div class="row"><label>Text</label><input type="text" placeholder="type here"></div>
  21. <div class="row"><label>Value</label><input type="text" value="hello"></div>
  22. <div class="row"><label>Password</label><input type="password" value="secret"></div>
  23. <div class="row"><label>Number</label><input type="number" value="42"></div>
  24. <div class="row"><label>Check</label><input type="checkbox" checked> <label>Unchecked</label><input type="checkbox"></div>
  25. <div class="row"><label>Radio</label><input type="radio" name="r" checked> A <input type="radio" name="r"> B</div>
  26. <div class="row"><label>Select</label><select><option>One</option><option selected>Two</option><option>Three</option></select></div>
  27. <div class="row"><label>Textarea</label><textarea id="ta" rows="2">two lines of text</textarea></div>
  28. <div class="row"><button id="b1" type="button">Button</button> <button type="submit">Submit</button> <button type="reset">Reset</button></div>
  29. <div class="row"><label>Disabled</label><input type="text" value="no edit" disabled> <button disabled>Disabled</button></div>
  30. <div id="result">Click a control and type; the value should update.</div>
  31. </body>
  32. </html>