The is used for search fields (a search field behaves like a regular text field). |
Example:
HTML
<form>
<label for="gsearch">Search Google:</label>
<input type="search" id="gsearch" name="gsearch">
</form>
Example:
HTML
<!DOCTYPE html>
<html>
<body>
<h2>Search Field</h2>
<p>The <strong>input type="search"</strong> is used for search fields (behaves like a regular text field):</p>
<form action="/action_page.php">
<label for="gsearch">Search Google:</label>
<input type="search" id="gsearch" name="gsearch">
<input type="submit" value="Submit">
</form>
</body>
</html>
Reffered: https://www.w3schools.com/html/html_form_input_types.asp
How is to HTML Input Type Search | HTML Input Types |
Full Code Example of HTML Input Type Search | HTML Input Types |
Read Full: | HTML Input Types |
Category: | Web Tutorial |
Sub Category: | HTML Input Types |
Uploaded: | 1 year ago |
Uploaded by: | Admin |
Views: | 36 |