84.8k views
5 votes
PART ONE: For this assignment, create an html page that has a login form. The form should have 3 input elements -- 1. type text for the user to enter username 2. type password (like text except cannot see the text that is typed in), for the user to enter password. 3. Submit button (type submit, as we did in class). The button should have the word Login displayed.

User Jonasfj
by
6.2k points

1 Answer

0 votes

Answer:

The following code are in HTML language:

Login_page.html :

<!DOCTYPE html>

<html lang="en">

<head>

<title>Login_Form</title>

<meta charset="UTF-8">

<meta name="viewport" content="width=device-width, initial-scale=1">

<link href="css/style.css" rel="stylesheet">

</head>

<body>

<form action="Login_page.php" method="post">

<table>

<tr>

<td>UserName</td>

<td>

<input type="text" name="username" placeholder="Username"/>

</td>

</tr>

<tr>

<td>Password</td>

<td>

<input type="password" name="password" placeholder="Password"/>

</td>

</tr>

<tr>

<td>

<input type="Submit" name="login" value="submit"/>

</td>

</tr>

</table>

</form>

</body>

</html>

Explanation:

Here, we have to use the HTML tag, and HEAD tag and the TITLE tag for the title of the page.

Then, we have to create a table for the structure of Form page by using table tag.

Then, we have to create form by using Form tag

Then, create two text boxes for the username and the password with the use of an input tag.

Then, we have to create a submit button for submitting the following details with the use of an input tag.

User Thiago Souto
by
5.7k points