Question #6471   Submitted by Answiki on 08/19/2022 at 11:47:32 AM UTC

What is the syntax of a hidden form field in HTML?

Answer   Submitted by Answiki on 08/19/2022 at 11:48:06 AM UTC

To hide input field in HTML forms, there are two options:


HTML: the attribute type="hidden" hide the field. The following code creates a hidden field with a default value:

<input type="hidden" name="hiddenFieldName"  value="myValue">

CSS : It is also possible to hide the field with the CSS property visibility:hidden:

<input style="visibility:hidden" name="hiddenFieldName" value="myValue">




5 events in history
Answer by Answiki on 08/19/2022 at 11:48:06 AM

To hide input field in HTML forms, there are two options:


HTML: the attribute type="hidden" hide the field. The following code creates a hidden field with a default value:

<input type="hidden" name="hiddenFieldName"  value="myValue">

CSS : It is also possible to hide the field with the CSS property visibility:hidden:

<input style="visibility:hidden" name="hiddenFieldName" value="myValue">




Question by Answiki 08/19/2022 at 11:47:32 AM
What is the syntax of a hidden form field in HTML?
Answer by Answiki on 11/02/2021 at 07:30:42 PM

To hide input field in HTML forms, there are two options:


HTML: the attribute type="hidden" hide the field. The following code creates a hidden field with a default value:

<input type="hidden" name="monChampCache"  value="maValeur">

CSS : It is also possible to hide the field with the CSS property visibility:hidden:

<input style="visibility:hidden" name="monChampCache" value="maValeur">




Question by Answiki 11/02/2021 at 07:28:13 PM
How to create a hidden input field in HTML forms?
Question by Answiki 11/02/2021 at 07:28:05 PM
How to create a hidden field in HTML forms?
# ID Query URL Count

Icons proudly provided by Friconix.