Enter the username

Report a typo

The HTML form below has a name and a user id as its input fields. Modify the form so that the user could enter the name of 15 characters only and user id could contain only numbers that are a multiple of 5.

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>Modify the form</title>
</head>
<body>
<form action="">
<label for="name">Name:</label>
<input type="text" name="name" id="name" />
<label for="userid">User ID:</label>
<input name="userid" id="userid" />
</form>
</body>
</html>


Completed 1 of 3
Modify the name input field such that it can contain only 15 characters.
Modify the user id input field such that it is a number only and multiple or a step of 5.
___

Create a free account to access the full topic