0

how do i make an html form?

Hi, I am having trouble creating a form with html. I wrote the correct code and everything, but I am not satisfied with my end result. it is only showing the Password text box, when it is supposed to show both the username AND Password boxes .Another Issue being that I can't submit any of the details that I enter.

16th Oct 2021, 10:50 AM
Aryan A
4 Answers
+ 2
When the problem is code related, don't forget to attach your code link when you post the question. https://www.sololearn.com/post/75089/?ref=app
16th Oct 2021, 11:00 AM
Ipang
+ 2
Use the <form> tag
16th Oct 2021, 4:49 PM
Chigozie Anyaeji 🇳🇬
Chigozie Anyaeji 🇳🇬 - avatar
+ 1
As a general rule if it doesn't do what it is supposed to do, it is *not* the correct code.
16th Oct 2021, 11:11 AM
Simon Sauter
Simon Sauter - avatar
0
<form action="" method="post"> <label for="username">Username :</label> <input type="text" id="username" required> <label for="password">Password :</label> <input type="password" id="password"> <input type="submit" value="Login"> </form>
16th Oct 2021, 9:15 PM
Jasy Fabiano
Jasy Fabiano - avatar