Button Element



Write a HTML code to demonstrate Text element with attributes.

<html>
  <head>
      <title>Text Demo</title>
  </head>
<body>

<form>
  <p> Default <br>
      <input type="text" name="tl"></p>

      <p> with size (10)and maxlength(5) <br>
      <input type="text" name="t2" size="10" maxlength="5"></p>
      
      <p> with value ="Hello!"<br>
      <input type="text" name="t3" size="10" value="Hello!"></p>
      
  </form>        
</body>
</html>

Output: