+ 12

Forms

Hello everyone! I do not understand why "Username", "Password" and "E-mail" appear in the right, at the end of the fields. I wanted them to appear at the beginning of each field. Can you please explain to me where I was wrong? <!DOCTYPE html> <html> <head> <title>First page</title> </head> <body> <form> <fieldset> <legend>Personal information</legend> <input type="text" name="username"/>Username<br/> <input type="password" name="password"/>Password<br/> <input type="text" name="e-mail"/>E-mail<br/> <input type="radio" name="gender" value="male"/>Male<br/> <input type="radio" name="gender" value="female"/>Female<br/> <input type="submit" value="Submit"/><br/> </fieldset> </form> </body> </html>

19th Aug 2019, 8:31 AM
Alexandra Nistor
Alexandra Nistor - avatar
17 ответов
+ 2
If you want them to appear in front, just put the Username, Password, and E-mail before the input tag for each. In your code you put them after the input tag: <input type="password" name="password" />Password<br/> What you want to do is this: Password: <input type="password" name="password" /> <br/>
15th Sep 2019, 11:36 PM
Parth Modi
Parth Modi - avatar
+ 7
Hello. You should try use <label></label> Like this: <label>Email</label><input ...>
19th Aug 2019, 8:39 AM
🍇 Alex Tușinean 💜
🍇 Alex Tușinean 💜 - avatar
+ 4
We can get the username or password infront by using <h6> this block level element. Then the format will be of following type: <h6> User name: <input type="text" name="username"/><br/> Password: <input type="password" name="password"/><br/> E-mail: <input type="text" name="e-mail"/><br/> <h6/> <input type="radio" name="gender" value="male"/>Male<br/> <input type="radio" name="gender" value="female"/>Female<br/> <input type="submit" value="submit"/><br/>
27th Jun 2020, 1:03 PM
Likhitha Gulla
Likhitha Gulla - avatar
+ 3
Oh, si poti folosi si placeholder asa: <input placeholder="enter email" type=text> Doar acum am vazut ca esti din Romania. 😂
19th Aug 2019, 8:42 AM
🍇 Alex Tușinean 💜
🍇 Alex Tușinean 💜 - avatar
+ 2
You made no mistake, but those texts are not in any tag, so they just appear as inline elements, i think.
19th Aug 2019, 8:40 AM
🍇 Alex Tușinean 💜
🍇 Alex Tușinean 💜 - avatar
+ 2
Cu placere. 😊
19th Aug 2019, 1:04 PM
🍇 Alex Tușinean 💜
🍇 Alex Tușinean 💜 - avatar
+ 2
Who can explain this to me more? ''When you use GET, the form data will be visible in the page address. Use POST if the form is updating data, or includes sensitive information (passwords). POST offers better security because the submitted data is not visible in the page address."
16th Jan 2020, 9:44 AM
A A Yusuf
A A Yusuf - avatar
+ 1
@Alex Tusinean Hmmm... Am inteles acum de ce nu arata in regula. Multumesc pentru ajutor! :)
19th Aug 2019, 12:58 PM
Alexandra Nistor
Alexandra Nistor - avatar
+ 1
Guys i dont get the form lesson at all can any one explain it to me
18th Mar 2020, 11:57 AM
Immortal Soul
Immortal Soul - avatar
+ 1
Hiii
1st Dec 2020, 2:11 AM
Bhaskar Sri
0
Buenas, cuando estoy haciendo un formulario <form action="url"> que dirección debo poner como se cual dirección sirve para almacenar esos datos?
8th Sep 2019, 4:47 PM
Alfredo Tiapa Bermudez
Alfredo Tiapa Bermudez - avatar
0
Hey
25th Sep 2019, 4:57 PM
Karthik Guru
Karthik Guru - avatar
29th Sep 2019, 7:50 AM
Kartik Patidar
Kartik Patidar - avatar
0
Plese help me
29th Sep 2019, 7:50 AM
Kartik Patidar
Kartik Patidar - avatar
0
Put the ”Password” and ”Email” in front of the tags.
22nd Nov 2019, 5:00 AM
peck15
0
<html> <head> <title>hello,my name is Onnin</title> </head> <body> <p>hi</p> <p>bay....</p>
4th Nov 2020, 8:13 PM
Ely
Ely - avatar
- 1
Jkjuu
19th Dec 2019, 7:30 PM
Михаил