202k views
3 votes
Write the html. Codes for: Username Password Login Sign in Lost your Password? Don't have an account? Sign up here!​

1 Answer

1 vote

Answer:

In this example, you will need to replace the action attribute in the <form> tag with the appropriate URL for your login processing script (login.php in this case). Similarly, update the URLs in the <a> tags for the lost password and sign-up links to point to the corresponding pages on your website (forgot_password.php and signup.php).

Feel free to customize the styling and layout of the form using CSS or additional HTML elements as needed.

Step-by-step explanation:

<!DOCTYPE html>

<html>

<head>

<title>Login Form</title>

</head>

<body>

<h1>Login</h1>

<form action="login.php" method="POST">

<label for="username">Username:</label>

<input type="text" id="username" name="username" required><br><br>

<label for="password">Password:</label>

<input type="password" id="password" name="password" required><br><br>

<input type="submit" value="Login">

</form>

<p><a href="forgot_password.php">Lost your password?</a></p>

<p>Don't have an account? <a href="signup.php">Sign up here!</a></p>

</body>

</html>

User Dina Diagovic
by
7.7k points