Programming Tip Of The Day #6: What is Meta Tag in HTML in Hindi | HTML5 Meta Tag Tutorial

Published: 25 June 2018
on channel: Thapa Technical
19,371
618

Welcome all, we will see What is Meta Tag in HTML in Hindi. HTML5 Meta Tag Tutorial in Hindi. Metadata is data (information) about data.

The meta tag provides metadata about the HTML document. Metadata will not be displayed on the page, but will be machine parsable.

Meta elements are typically used to specify page description, keywords, author of the document, last modified, and other metadata.

The metadata can be used by browsers (how to display content or reload page), search engines (keywords), or other web services.

HTML5 introduced a method to let web designers take control over the viewport (the user's visible area of a web page), through the meta tag. Note: Metadata is always passed as name/value pairs.

Note: The content attribute MUST be defined if the name or the http-equiv attribute is defined. If none of these are defined, the content attribute CANNOT be defined.

Setting The Viewport

HTML5 introduced a method to let web designers take control over the viewport, through the meta tag.

The viewport is the user's visible area of a web page. It varies with the device, and will be smaller on a mobile phone than on a computer screen.
A meta viewport element gives the browser instructions on how to control the page's dimensions and scaling.

The width=device-width part sets the width of the page to follow the screen-width of the device (which will vary depending on the device).

The initial-scale=1.0 part sets the initial zoom level when the page is first loaded by the browser.

Don't Forget to Follow me on all Social Network,

Instagram Link:   / vinodthapa55  
Facebook Link:   / vinodthapa55  
Twitter Link:   / vb55thapa  
Facebook ThapaTechnical Page Link:   / vinodbahadur.  .