Guest User

Untitled

a guest
Apr 3rd, 2017
111
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.07 KB | None | 0 0
  1. <!DOCTYPE html>
  2. <html>
  3.  
  4. <head>
  5. <title>Formularz w HTML</title>
  6. <meta charset=utf-8/>
  7. <style>
  8. <!-- https://pastebin.com/07As6MFA -->
  9. label {
  10. display:block;
  11. position: relative;
  12. margin-bottom:20px;
  13. text-align: left;
  14. }
  15.  
  16. form {
  17. text-align:center;
  18. width:80%;
  19. padding: 20px;
  20. margin: 0 auto;
  21. border:1px solid red;
  22. }
  23. label input {
  24. width: 80%;
  25. position: absolute;
  26. right:0px;
  27. }
  28.  
  29. </style>
  30. </head>
  31. <body>
  32. <!-- Formularz z 2 polami typu input + przycisk SUBMIT -->
  33. <!--
  34. Metoda:
  35. - GET - dane przesyłane przez adres URL
  36. - POST - dane przesyłane przez nagłówki HTTP
  37. -->
  38. <form action="#" method="GET">
  39. <!--
  40. Uwaga: atrybut NAME jest wymagany !!!
  41. -->
  42. <label>
  43. Twoje imie:
  44. <input type=text name="imie" placeholder="Wpisz imie"/>
  45. </label>
  46. <label>
  47. Twoje nazwisko:
  48. <input type=text name="nazwisko" placeholder="Wpisz nazwisko"/>
  49. </label>
  50.  
  51. <input type="submit" value="Wyślij formularz"/>
  52. </form>
  53. </body>
  54.  
  55. </html>
Advertisement
Add Comment
Please, Sign In to add comment