HTML Page Structure

HTML Elements
HTML Attributes


HTML Hidden Tag

HTML Textarea Tag is usefull you want to send information without letting the user change that information. As you know that if you want to collect user's input in text format, you need to put <input> tag type equals to text. <input type="text"> refers to one-line input field for text input from the user but if you want some information should also sent when the form is submitted without letting the user change that information, you need to put <input type="hidden">.

Hidden field is similar to text field with an only difference that the hidden field does not appear on the page hence the user can't type anything into a hidden field.

Syntax

<form>
	<input type="hidden">
</form>

Example

<!DOCTYPE html>
<html>
<head>
<title>My HTML Text Tag Example</title>
</head>
<body>
<form>
      <p>
        Name: <input type="text" id="name" size="25"/>
     </p>
      <p>
        Subject: <input type="text" id="subject" size="25"/> 
      </p>
	  <p>
      <input type="hidden" id="class" value="Seventh"/> 
      </p>
</form>
</body>
</html>

This will produce following result

Name:

Subject: