Example:
HTML
<!DOCTYPE html>
<html>
<body>
<h1>The input required attribute</h1>
<form action="/action_page.php">
<label for="username">Username:</label>
<input type="text" id="username" name="username" required>
<input type="submit">
</form>
</body>
</html>
How to add An HTML form with a required input field - HTML required Attribute | HTML Attribute |
How to add An HTML form with a required drop-down list - HTML required Attribute | HTML Attribute |
How to add A form with a required text area - HTML required Attribute | HTML Attribute |
Type: | Html |
Category: | Web Tutorial |
Sub Category: | HTML Attribute |
Uploaded by: | Admin |