![]() |
The input The |
Example:
HTML
<form>
<label for="username">Username:</label>
<input type="text" id="username" name="username" required>
</form>
Example:
HTML
<!DOCTYPE html>
<html>
<body>
<h1>The input required attribute</h1>
<p>The required attribute specifies that an input field must be filled out before submitting the form.</p>
<form action="/action_page.php">
<label for="username">Username:</label>
<input type="text" id="username" name="username" required>
<input type="submit" value="Submit">
</form>
</body>
</html>
How is to look HTML required Attribute | HTML Input Attributes |
Full Code Example of HTML required Attribute | HTML Input Attributes |
Read Full: | HTML Input Attributes |
Category: | Web Tutorial |
Sub Category: | HTML Input Attributes |
Uploaded: | 1 year ago |
Uploaded by: | Admin |
Views: | 57 |
Reffered: https://www.w3schools.com/html/html_form_attributes.asp