Introduction to HTML textarea and file input tags

Code demonstrating the use of <textarea> tag


  <!DOCTYPE html>
  <html lang="en">
  <head>
      <meta charset="UTF-8">
      <meta name="viewport" content="width=<device-width>, initial-scale=1.0">
      <title>HTML Basics</title>
      <style>
          #t1
          {
              resize: horizontal;
          }
      </style>
  </head>
  <body>
      <label for="description">Enter the Description</label> <br>
      <textarea name="t1" id="t1" cols="30" rows="10"></textarea>
  </body>
  </html>

Output

image displaying textarea box

input type file in HTML


  <!DOCTYPE html>
  <html lang="en">
  <head>
      <meta charset="UTF-8">
      <meta name="viewport" content="width=<device-width>, initial-scale=1.0">
      <title>HTML Basics</title>
  </head>
  <body>
      <label for="fileupload">Select your file</label>
      <input type="file" name="fileupload" id="file">
      <input type="button" name="upload" value="upload">
  </body>
  </html>

Output

image displaying input type file image