Surround the search form with a search element:
<search>
<form>
<input name="fsrch" id="fsrch" placeholder="Search 91xjr">
</form>
</search>
Try it Yourself »
The <search>
tag is used to specify that here comes a set of elements that is related to search.
Elements inside a <search>
elements can typically be form elements used to perform a search.
Note: The <search>
element does not render as anything special in a browser. However, you can use CSS to style the <search>
element and its content.
Element | |||||
---|---|---|---|---|---|
<search> | Yes | Yes | Yes | Yes | Yes |
TThe <search>
tag also supports the Global Attributes in HTML./p>
TThe <search>
tag also supports the Event Attributes in HTML./p>
The <form> Tag.
The <input> Tag.
MMost browsers will display the <search>
element with the following default values:
截取页面反馈部分,让我们更快修复内容!也可以直接跳过填写反馈内容!