XHTML » input » type="hidden"

The type="hidden" control is used to add content to the form that cannot be viewed or changed by the user. When the form is submitted, the hidden content is passed along with all the other contents of the form.

The hidden content is essentialy a name/value pair. You must provide a name using the name attribute. You also must provide a value. This value can be any textual or numeric information.


<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
<title>DevGuru XHTML input Tag Example</title>
<input type="hidden" name="SocSecNum" value="123-45-6789" />
Language(s): HTML