The <input type="hidden"> is a hidden input field in HTML CSS example code.
A hidden field lets web developers include data that cannot be seen or modified by users when a form is submitted.
A hidden field often stores the database record that must be updated when the form is submitted.
Supported Browsers: The browsers supported by <input type=” hidden”> are listed below:
- Google Chrome 1.0 and above
- Edge 12.0 and above
- Internet Explorer
- Firefox 1.0 and above
- Safari 1.0 and above
- Opera 2.0 and above
Example:
Define a hidden field:
<input type="hidden" id="custId" name="custId" value="3487">
OUTPUT:
AR3SCHOOL
HTML <input type = "hidden">
Note:
While the value is not displayed to the user in the page's content, it is visible (and can be edited) using any browser's developer tools or "View Source" functionality. Do not use hidden inputs as a form of security.
Comments :
Post a Comment