Text Field in HTML

The Text Field in HTML are one line areas, which enable the user to enter input text.

Text Field in HTML

     

The Text Field in HTML are one line areas, which enable the user to enter input text.

Understand with Example

The Tutorial illustrates an example from Text Field in HTML.In this Tutorial, the code create a text field in HTML page.

<form action> is used to specify  the page to be displayed on click the submit button.

The <input type> specify the type of  component is a text field.

The code is saved with .html extension. Now paste the path of a html code into a url of browser.

<form action="">

<input type="textfield" value="Your Name">

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

On execution of the code, the output is displayed as

Download

Ads