0

What is the use of <meta>in html.Anyone can explain with examples

use of meta tag

21st Aug 2018, 11:44 AM
Bandaru Yogesh
Bandaru Yogesh - avatar
1 Odpowiedź
+ 1
Metadata is a form of storing data, from what I know. The <meta> tag provides metadata about the HTML document. Metadata will most likely not be displayed on the page, although it will be machine parsable. Most Meta elements are used to specify the document description, keywords, author etc. In the words of https://www.w3schools.com/tags/tag_meta.asp : "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 (See "Setting The Viewport" example below)." If you would like to store some data named "your_name" and have the value "Bandaru Yogesh" you could just do; <meta name="your_name" content="Bandaru Yogesh">
21st Aug 2018, 12:09 PM
Archie
Archie - avatar