Skip to content
Related Articles

Related Articles

Improve Article

HTML | <input type=”text”>

  • Last Updated : 20 Oct, 2020

The HTML <input type=”text”> is used to define a single-line text field . The default width of the text field is 20 characters.


<input type="text">


<!DOCTYPE html> 
        HTML input type text 
<body style="text-align:center;"
    <h1 style="color:green;"
        HTML <Input Type="text"
        Name: <input type="text">


Supported Browsers: The browsers supported by <input type=”text”> are listed below:

  • Google Chrome
  • Internet Explorer
  • Firefox
  • Safari
  • Opera

Attention reader! Don’t stop learning now. Get hold of all the important HTML concepts with the Web Design for Beginners | HTML  course.

My Personal Notes arrow_drop_up
Recommended Articles
Page :