Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <!DOCTYPE html>
- <html>
- <head>
- <title>Formularz w HTML</title>
- <meta charset=utf-8/>
- <style>
- <!-- https://pastebin.com/07As6MFA -->
- label {
- display:block;
- position: relative;
- margin-bottom:20px;
- text-align: left;
- }
- form {
- text-align:center;
- width:80%;
- padding: 20px;
- margin: 0 auto;
- border:1px solid red;
- }
- label input {
- width: 80%;
- position: absolute;
- right:0px;
- }
- </style>
- </head>
- <body>
- <!-- Formularz z 2 polami typu input + przycisk SUBMIT -->
- <!--
- Metoda:
- - GET - dane przesyłane przez adres URL
- - POST - dane przesyłane przez nagłówki HTTP
- -->
- <form action="#" method="GET">
- <!--
- Uwaga: atrybut NAME jest wymagany !!!
- -->
- <label>
- Twoje imie:
- <input type=text name="imie" placeholder="Wpisz imie"/>
- </label>
- <label>
- Twoje nazwisko:
- <input type=text name="nazwisko" placeholder="Wpisz nazwisko"/>
- </label>
- <input type="submit" value="Wyślij formularz"/>
- </form>
- </body>
- </html>
Advertisement
Add Comment
Please, Sign In to add comment