Skip to content
Related Articles

Related Articles

HTML | <input type=”text”>

View Discussion
Improve Article
Save Article
  • Last Updated : 26 Jul, 2022

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 &lt;Input Type="text"&gt;
        Name: <input type="text">



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

  • Google Chrome 1
  • Edge 12
  • Internet Explorer
  • Firefox 1
  • Safari 1
  • Opera
My Personal Notes arrow_drop_up
Recommended Articles
Page :

Start Your Coding Journey Now!