How to use HTML meta, form and input tag

How to use HTML meta, form and input tag

HTML meta tag

The <meta> tag defines metadata about an HTML document. Metadata is data (information) about data.

<meta> tags always go inside the <head> element, and are typically used to specify character set, page description, keywords, author of the document, and viewport settings.

Metadata will not be displayed on the page, but is machine parsable.

Metadata is used by browsers (how to display content or reload page), search engines (keywords), and other web services.

There is a method to let web designers take control over the viewport (the user's visible area of a web page), through the <meta> tag

HTML form tag

READ ALSO » How To Use HTML Fieldset, Legend, Select, Option, Label, Details, Progress Tag

The <form> tag is used to create an HTML form for user input

HTML input tag

The <input> tag specifies an input field where the user can enter data.

The <input> element is the most important form element.

The <input> element can be displayed in several ways, depending on the type attribute.

The different input types are as follows:

  • <input type=button>
  • <input type=checkbox>
  • <input type=color>
  • <input type=date>
  • <input type=datetime-local>
  • <input type=email>
  • <input type=file>
  • <input type=hidden>
  • <input type=image>
  • <input type=month>
  • <input type=number>
  • <input type=password>
  • <input type=radio>
  • <input type=range>
  • <input type=reset>
  • <input type=search>
  • <input type=submit>
  • <input type=tel>
  • <input type=text> (default value)
  • <input type=time>
  • <input type=url>
  • <input type=week>