Button alteration

Report a typo

A button is created inside the form below. By mistake, a user entered the wrong details while filling the form. You need to create two buttons, one to submit the form data, and another to reset the form to its original state.

Write HTML and CSS code
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8" />
<meta http-equiv="X-UA-Compatible" content="IE=edge" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<title>Submit and reset</title>
</head>
<body>
<form action="">
<label for="name">Name</label>
<input id="name" type="text" required /> <br /><br />

<label for="password">Password</label>
<input type="password" id="password" required /> <br /><br />

</form>
</body>
</html>











Completed 1 of 3
Create a submit button inside the form with id, value and type as submit.
Create a reset button inside the form with id, value, and type as reset.
___

Create a free account to access the full topic