CSS form


 / Published in: HTML
 

  1. <style type="text/css">
  2. <!--
  3. label,input {
  4. display: block;
  5. width: 150px;
  6. float: left;
  7. margin-bottom: 10px;
  8. }
  9.  
  10. label {
  11. text-align: right;
  12. width: 75px;
  13. padding-right: 20px;
  14. }
  15.  
  16. br {
  17. clear: left;
  18. }-->
  19. <label for="name">Name</label>
  20. <input id="name" name="name">
  21. <br>
  22. <label for="address">Address</label>
  23. <input id="address" name="address">
  24. <br>
  25. <label for="city">City</label>
  26. <input id="city" name="city">
  27. <br>
  28. </form>

Report this snippet  

Comments

RSS Icon Subscribe to comments
Posted By: JasmineShepherd on June 10, 2017

That’s a great simple form which takes 3 inputs Name, address, and City but where is submit button? Well, this is the easiest way to educate students who are seeking help in their assignment or searching assignment writing service to make their assignment accomplished so they can use this information. Snipplr is a really great website to learn front end.

You need to login to post a comment.