HTML tag (Not supported in HTML5)

HTML tag is used to provide a single line text input in a page to query a document. If user sent input to the server then server returns the list of page matching with the query.

The tag can be used anywhere in the document, but it would be preferable to use it within tag.

Note: Do not use tag as it is not supported by HTML5, instead of it you can use form which will do the same work.

Syntax

Following are some specifications about the HTML tag

Display None
Start tag/End tag Only Start tag (End tag forbidden)
An element of Document Structure

Example

Test it Now

Attribute

Tag-specific Attribute

Attribute Value Description
prompt hint-text It adds value as a label for the search text field.
action URL It is used to send the query to different URL instead of current document.

Global Attribute

HTML tag supports the Global Attributes.

Event attribute

HTML tag supports the Event Attributes.

Supporting Browsers

Element chrome browser Chrome ie browser IE firefox browser Firefox opera browser Opera safari browser Safari
No No No No No
Next TopicHTML kbd Tag




Contact US

Email:[email protected]

HTML isindex Tag
10/30