Why use Metadata in HTML?

<meta> attributes and its values

  • charset: It specifies the character encoding for the HTML document. Common values: UTF-8 (Character encoding for Unicode) and ISO-8859–1 (Character encoding for the Latin alphabet).
  • content: It specifies the value associated with the http-equiv or name attribute.
  • http-equiv: It provides an HTTP header for the information/value of the content attribute. It can be used to simulate an HTTP response header. Common values: content-security-policy (Specifies a content policy for the document), content-type (Specifies the character encoding for the document), default-style (Specified the preferred style sheet to use), and refresh (Defines a time interval for the document to refresh itself).
  • name: It specifies a name for the metadata. Common values: application-name (Specifies the name of the Web application that the page represents), author (Specifies the name of the author of the document), description (Specifies a description of the page), generator (Specifies one of the software packages used to generate the document), keywords (Specifies a comma-separated list of keywords — relevant to the page), and viewport (Controls the viewport i.e. the user’s visible area of a web page).

--

--

--

Developer with 3 yrs of industrial experience in developing scalable web applications.

Love podcasts or audiobooks? Learn on the go with our new app.

Recommended from Medium

How to Manage Multiple Python Versions in MacOS. (2021 Guide)

How To Build a Product Plan Example or Roadmap

[iOS/Swift] How to read and write custom objects in Firestore

PDX 39 project progress: March 7 — March 20

Adding a Border to the Image using NumPy

Keep Your Tools Simple

SAP Tutorial: Complete CAP Java Part 5

The 25 Best VS Code Extensions

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store
Abhay Jain

Abhay Jain

Developer with 3 yrs of industrial experience in developing scalable web applications.

More from Medium

Make a tabs web component in Lit using slots and css

The Complete JS Notes #2 🧵

Bad habit to design an HTML template.

Avoid mistakes in HTML template Designing

What does CSS do? The power of Cascading Style Sheets (1/3)