{"id":62,"date":"2022-03-19T10:01:09","date_gmt":"2022-03-19T10:01:09","guid":{"rendered":"https:\/\/staging.brightwhiz.com\/?post_type=topic&p=62"},"modified":"2022-03-19T10:01:10","modified_gmt":"2022-03-19T10:01:10","slug":"html-meta-tags","status":"publish","type":"topic","link":"http:\/\/local.tutorials\/topic\/html-meta-tags\/","title":{"rendered":"HTML – Meta Tags"},"content":{"rendered":"\n

HTML meta tags allow the web developer to include metadata into an HTML document, which is, additional information about the web page. Meta tags typically use name\/value pairs describing the respective properties of the web page. These could include information such as page author, keywords list, document description, document character set, viewport, etc.<\/p>\n\n\n\n

The <meta><\/code> tag is an empty element therefore all its information is contained in the attributes. The meta tag should be placed in the head element of the HTML document.<\/p>\n\n\n\n

Example<\/p>\n\n\n\n

<!DOCTYPE html>\n<html>\n   <head>\n      <meta charset="utf-8">\n      <meta name="viewport" content="width=device-width,initial-scale=1.0,user-scalable=yes">\n      <meta name="author" content="John Doe">\n      <meta name = "keywords" content = "HTML, Meta Tags, Metadata">\n      <meta name = "description" content = "HTML Meta Tags explained">\n   <\/head>\n<\/html><\/code><\/pre>\n\n\n\n

The metadata presented in HTML meta tags will not be displayed on the page but is machine parsable such as web browsers use it to decide how to display content, a search engine can use it to retrieve the keywords, social media sites can use it for custom data or information, etc.<\/p>\n\n\n\n

Attributes<\/h2>\n\n\n\n

These are the attributes you can use in meta tags with the most common values indicated.<\/p>\n\n\n\n

Attribute<\/strong><\/td>Value<\/strong><\/td>Description<\/strong><\/td><\/tr>
charset<\/td>character_set<\/td>Specifies the character encoding for the HTML document<\/td><\/tr>
content<\/td>text<\/td>Specifies the value associated with the http-equiv or name attribute<\/td><\/tr>
http-equiv<\/td>content-security-policy
content-type
default-style
refresh<\/td>
Provides an HTTP header for the information\/value of the content attribute<\/td><\/tr>
name<\/td>application-name
author
description
generator
keywords
viewport<\/td>
Specifies a name for the metadata<\/td><\/tr><\/tbody><\/table><\/figure>\n\n\n\n

Some Examples in Practice<\/h2>\n\n\n\n

Define keywords for search engines:<\/p>\n\n\n\n

<meta name = "keywords" content = "HTML, Meta Tags, Metadata"><\/code><\/pre>\n\n\n\n

Define a description of your web page:<\/p>\n\n\n\n

<meta name = "description" content = "HTML Meta Tags explained"><\/code><\/pre>\n\n\n\n

Specify the character set of your web page:<\/p>\n\n\n\n

<meta charset="utf-8"><\/code><\/pre>\n\n\n\n

Define the author of a page:<\/p>\n\n\n\n

<meta name="author" content="John Doe"><\/code><\/pre>\n\n\n\n

Used for responsive web design, set the viewport to make your website look good on all devices:<\/p>\n\n\n\n

<meta name="viewport" content="width=device-width,initial-scale=1.0,user-scalable=yes"><\/code><\/pre>\n\n\n\n

Specify when the web page was last edited:<\/p>\n\n\n\n

<meta name="revised" content="Thursday, January 10th, 2022, 10:35 am"><\/code><\/pre>\n\n\n\n

You can read this page for a more extensive list of HTML Meta tags<\/a>.<\/p>\n","protected":false},"excerpt":{"rendered":"

HTML meta tags allow the web developer to include metadata into an HTML document, which is, additional information about the web page. Meta tags typically use name\/value pairs describing the respective properties of the web page. These could include information such as page author, keywords list, document description, document character set, viewport, etc. The <meta> […]<\/p>\n","protected":false},"featured_media":43,"comment_status":"open","ping_status":"closed","template":"","meta":[],"categories":[2],"tags":[],"subject":[7,8],"yoast_head":"\nLearn HTML - Meta Tags<\/title>\n<meta name=\"description\" content=\"HTML meta tags are elements that are used to provide more metadata information to web browsers and bots about the web page\" \/>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"http:\/\/local.tutorials\/topic\/html-meta-tags\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"Learn HTML - Meta Tags\" \/>\n<meta property=\"og:description\" content=\"HTML meta tags are elements that are used to provide more metadata information to web browsers and bots about the web page\" \/>\n<meta property=\"og:url\" content=\"http:\/\/local.tutorials\/topic\/html-meta-tags\/\" \/>\n<meta property=\"og:site_name\" content=\"Brightwhiz.com Tutorials and Courses\" \/>\n<meta property=\"article:publisher\" content=\"https:\/\/www.facebook.com\/brightwhiz\" \/>\n<meta property=\"article:modified_time\" content=\"2022-03-19T10:01:10+00:00\" \/>\n<meta property=\"og:image\" content=\"http:\/\/local.tutorials\/wp-content\/uploads\/2022\/03\/tutorial-html5.png\" \/>\n\t<meta property=\"og:image:width\" content=\"640\" \/>\n\t<meta property=\"og:image:height\" content=\"360\" \/>\n\t<meta property=\"og:image:type\" content=\"image\/png\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:site\" content=\"@brightwhizmag\" \/>\n<meta name=\"twitter:label1\" content=\"Est. reading time\" \/>\n\t<meta name=\"twitter:data1\" content=\"2 minutes\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\/\/schema.org\",\"@graph\":[{\"@type\":\"WebPage\",\"@id\":\"http:\/\/local.tutorials\/topic\/html-meta-tags\/\",\"url\":\"http:\/\/local.tutorials\/topic\/html-meta-tags\/\",\"name\":\"Learn HTML - Meta Tags\",\"isPartOf\":{\"@id\":\"http:\/\/local.tutorials\/#website\"},\"datePublished\":\"2022-03-19T10:01:09+00:00\",\"dateModified\":\"2022-03-19T10:01:10+00:00\",\"description\":\"HTML meta tags are elements that are used to provide more metadata information to web browsers and bots about the web page\",\"breadcrumb\":{\"@id\":\"http:\/\/local.tutorials\/topic\/html-meta-tags\/#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"http:\/\/local.tutorials\/topic\/html-meta-tags\/\"]}]},{\"@type\":\"BreadcrumbList\",\"@id\":\"http:\/\/local.tutorials\/topic\/html-meta-tags\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"http:\/\/local.tutorials\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Topics\",\"item\":\"http:\/\/local.tutorials\/topic\/\"},{\"@type\":\"ListItem\",\"position\":3,\"name\":\"HTML – Meta Tags\"}]},{\"@type\":\"WebSite\",\"@id\":\"http:\/\/local.tutorials\/#website\",\"url\":\"http:\/\/local.tutorials\/\",\"name\":\"Brightwhiz.com Tutorials and Courses\",\"description\":\"\",\"publisher\":{\"@id\":\"http:\/\/local.tutorials\/#organization\"},\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"http:\/\/local.tutorials\/?s={search_term_string}\"},\"query-input\":\"required name=search_term_string\"}],\"inLanguage\":\"en-US\"},{\"@type\":\"Organization\",\"@id\":\"http:\/\/local.tutorials\/#organization\",\"name\":\"Brightwhiz.com\",\"url\":\"http:\/\/local.tutorials\/\",\"logo\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"http:\/\/local.tutorials\/#\/schema\/logo\/image\/\",\"url\":\"https:\/\/staging.brightwhiz.com\/wp-content\/uploads\/2022\/03\/brightwhiz-com-logo-orange.png\",\"contentUrl\":\"https:\/\/staging.brightwhiz.com\/wp-content\/uploads\/2022\/03\/brightwhiz-com-logo-orange.png\",\"width\":706,\"height\":135,\"caption\":\"Brightwhiz.com\"},\"image\":{\"@id\":\"http:\/\/local.tutorials\/#\/schema\/logo\/image\/\"},\"sameAs\":[\"https:\/\/www.facebook.com\/brightwhiz\",\"https:\/\/twitter.com\/brightwhizmag\",\"https:\/\/www.instagram.com\/glamorglaze\/\",\"https:\/\/www.pinterest.com\/sobbayi\/\",\"https:\/\/www.youtube.com\/c\/Sobbayi\"]}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"Learn HTML - Meta Tags","description":"HTML meta tags are elements that are used to provide more metadata information to web browsers and bots about the web page","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"http:\/\/local.tutorials\/topic\/html-meta-tags\/","og_locale":"en_US","og_type":"article","og_title":"Learn HTML - Meta Tags","og_description":"HTML meta tags are elements that are used to provide more metadata information to web browsers and bots about the web page","og_url":"http:\/\/local.tutorials\/topic\/html-meta-tags\/","og_site_name":"Brightwhiz.com Tutorials and Courses","article_publisher":"https:\/\/www.facebook.com\/brightwhiz","article_modified_time":"2022-03-19T10:01:10+00:00","og_image":[{"width":640,"height":360,"url":"http:\/\/local.tutorials\/wp-content\/uploads\/2022\/03\/tutorial-html5.png","type":"image\/png"}],"twitter_card":"summary_large_image","twitter_site":"@brightwhizmag","twitter_misc":{"Est. reading time":"2 minutes"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"WebPage","@id":"http:\/\/local.tutorials\/topic\/html-meta-tags\/","url":"http:\/\/local.tutorials\/topic\/html-meta-tags\/","name":"Learn HTML - Meta Tags","isPartOf":{"@id":"http:\/\/local.tutorials\/#website"},"datePublished":"2022-03-19T10:01:09+00:00","dateModified":"2022-03-19T10:01:10+00:00","description":"HTML meta tags are elements that are used to provide more metadata information to web browsers and bots about the web page","breadcrumb":{"@id":"http:\/\/local.tutorials\/topic\/html-meta-tags\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["http:\/\/local.tutorials\/topic\/html-meta-tags\/"]}]},{"@type":"BreadcrumbList","@id":"http:\/\/local.tutorials\/topic\/html-meta-tags\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"http:\/\/local.tutorials\/"},{"@type":"ListItem","position":2,"name":"Topics","item":"http:\/\/local.tutorials\/topic\/"},{"@type":"ListItem","position":3,"name":"HTML – Meta Tags"}]},{"@type":"WebSite","@id":"http:\/\/local.tutorials\/#website","url":"http:\/\/local.tutorials\/","name":"Brightwhiz.com Tutorials and Courses","description":"","publisher":{"@id":"http:\/\/local.tutorials\/#organization"},"potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"http:\/\/local.tutorials\/?s={search_term_string}"},"query-input":"required name=search_term_string"}],"inLanguage":"en-US"},{"@type":"Organization","@id":"http:\/\/local.tutorials\/#organization","name":"Brightwhiz.com","url":"http:\/\/local.tutorials\/","logo":{"@type":"ImageObject","inLanguage":"en-US","@id":"http:\/\/local.tutorials\/#\/schema\/logo\/image\/","url":"https:\/\/staging.brightwhiz.com\/wp-content\/uploads\/2022\/03\/brightwhiz-com-logo-orange.png","contentUrl":"https:\/\/staging.brightwhiz.com\/wp-content\/uploads\/2022\/03\/brightwhiz-com-logo-orange.png","width":706,"height":135,"caption":"Brightwhiz.com"},"image":{"@id":"http:\/\/local.tutorials\/#\/schema\/logo\/image\/"},"sameAs":["https:\/\/www.facebook.com\/brightwhiz","https:\/\/twitter.com\/brightwhizmag","https:\/\/www.instagram.com\/glamorglaze\/","https:\/\/www.pinterest.com\/sobbayi\/","https:\/\/www.youtube.com\/c\/Sobbayi"]}]}},"_links":{"self":[{"href":"http:\/\/local.tutorials\/wp-json\/wp\/v2\/topic\/62"}],"collection":[{"href":"http:\/\/local.tutorials\/wp-json\/wp\/v2\/topic"}],"about":[{"href":"http:\/\/local.tutorials\/wp-json\/wp\/v2\/types\/topic"}],"replies":[{"embeddable":true,"href":"http:\/\/local.tutorials\/wp-json\/wp\/v2\/comments?post=62"}],"wp:featuredmedia":[{"embeddable":true,"href":"http:\/\/local.tutorials\/wp-json\/wp\/v2\/media\/43"}],"wp:attachment":[{"href":"http:\/\/local.tutorials\/wp-json\/wp\/v2\/media?parent=62"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"http:\/\/local.tutorials\/wp-json\/wp\/v2\/categories?post=62"},{"taxonomy":"post_tag","embeddable":true,"href":"http:\/\/local.tutorials\/wp-json\/wp\/v2\/tags?post=62"},{"taxonomy":"subject","embeddable":true,"href":"http:\/\/local.tutorials\/wp-json\/wp\/v2\/subject?post=62"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}