|
|
The is used for search fields (a search field behaves like a regular text field). |
<form>
<label for="gsearch">Search Google:</label>
<input type="search" id="gsearch" name="gsearch">
</form> <!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>
Category: | Web Tutorial |
Sub Category: | HTML Input Types |
Uploaded by: | Admin |
Read Articlehttps://develop.horje.com/learn/1434/reference