+ 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>
17 Answers
+ 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/>
+ 7
Hello. You should try use <label></label>
Like this:
<label>Email</label><input ...>
+ 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/>
+ 3
Oh, si poti folosi si placeholder asa:
<input placeholder="enter email" type=text>
Doar acum am vazut ca esti din Romania. 😂
+ 2
You made no mistake, but those texts are not in any tag, so they just appear as inline elements, i think.
+ 2
Cu placere. 😊
+ 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."
+ 1
@Alex Tusinean Hmmm... Am inteles acum de ce nu arata in regula. Multumesc pentru ajutor! :)
+ 1
Guys i dont get the form lesson at all can any one explain it to me
+ 1
Hiii
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?
0
Hey
0
Plese help me
0
Put the ”Password” and ”Email” in front of the tags.
0
<html>
<head>
<title>hello,my name is Onnin</title>
</head>
<body>
<p>hi</p>
<p>bay....</p>
- 1
Jkjuu