HTML <input type="hidden"> (original) (raw)

Last Updated : 20 May, 2024

The **HTML element defines a hidden input field. Hidden fields store data that are not visible or modifiable by users when they submit a form. They are useful for including data that needs to be sent with the form but does not need to be displayed.

**Syntax

**Example: This example demonstrates the use of HTML element.

html `

HTML Input Type Hidden

HTML <input type="hidden">

<form action="#">
    <input type="hidden" id="myFile" value="1234">

    <label for="heading">Enter Heading:</label><br>
    <input type="text" name="heading" id="heading">
    <br><br>

    <label for="content">Enter Paragraph:</label><br>
    <textarea name="content" id="content"></textarea>
    <br><br>

    <label for="content">Enter Meta Description:</label><br>
    <textarea name="content" id="content"></textarea>
    <br><br>

    <input type="submit" value="Create Post">
</form>

`

**Output

HTML-Input-Type-Hidden

**Supported Browsers

The browsers supported by ****** are listed below:

Similar Reads