New to HTML? Confused about what or how meta tags in HTML work? Welcome to my first blog based on the basic terminology of Meta tags and their usage. Happy reading! :)
Charset : It specifies the character encoding used in out HTML document. Now,what is character encoding? The conversion of bytes into characters is done by character encoding. A proper character encoding is important to display or validate HTML document. "UTF-8" (Unicode Transformation Format) is a system which translates ay Uicode character to a unique binary string ad vice versa.
Code : <meta charset="UTF-8">
Content : It specifies the values of the properties used.
Code : <meta name="viewport" content="width=device-width, initial-scale=1.0"> (This makes your website look good on all devices)
Http-equiv : It is used to get http response message. It can be used to set a cookie or refresh a page.
Code : <meta http-equiv="refresh" content="10"> (It will refresh the document in every 10 seconds)
Name : It lets us specify the name for the metadata.
Description : It is used to write a short description about the HTML document
Code : <meta name = "description" content = "My first blog">
Revision Date : It is used to give the information about the latest document updates.
Code : <meta name = "revised date" content = "document update time-latest" >
Viewport is that region of the webpage which is visible to us onn the screens
and varies as the device's size varies. In desktops it will be different, in
phones, different.
The viewport attribute helps the browser in setting the dimensions and
scaling of the document