{"id":4392,"date":"2024-11-13T07:34:48","date_gmt":"2024-11-13T07:34:48","guid":{"rendered":"https:\/\/diib.com\/learn\/?p=4392"},"modified":"2026-09-23T15:44:05","modified_gmt":"2026-09-23T15:44:05","slug":"html-metadata","status":"publish","type":"post","link":"https:\/\/diib.com\/learn\/html-metadata\/","title":{"rendered":"HTML Metadata: Included Elements and Best Practices"},"content":{"rendered":"<h1 id=\"chapter1\"><b>Elements and Best Practices in HTML Metadata<\/b><\/h1>\n<p>Meta tags are brief extracts of a code that inform search engines about crucial information about your webpage. They also control how web browsers display to visitors. Meta tags are present on every web page and you can only see them in the HTML code. Here is a list of meta tag examples for SEO.<\/p>\n<ul>\n<li>Meta description<\/li>\n<li>Meta robots<\/li>\n<li>Meta title<\/li>\n<li>Meta charset<\/li>\n<li>Meta refresh redirect<\/li>\n<li>Meta viewport<\/li>\n<\/ul>\n<h2 id=\"chapter2\"><b>Meta Title<\/b><\/h2>\n<p>The page title shown by Google and other search engines in the search results is the meta title. A HTML title provides the users with a quick insight into a result&#8217;s content and its relevance to the query. It is usually the basic form of information that determines which result to click on. Using high-quality titles on your web pages is very important for SEO. Here is an example of a meta title:<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter size-full wp-image-4396\" src=\"https:\/\/diib.com\/learn\/wp-content\/uploads\/2021\/01\/html-metadata-4.jpg\" alt=\"HTML Metadata: Included Elements and Best Practices\" width=\"1200\" height=\"562\" srcset=\"https:\/\/diib.com\/learn\/wp-content\/uploads\/2021\/01\/html-metadata-4.jpg 1200w, https:\/\/diib.com\/learn\/wp-content\/uploads\/2021\/01\/html-metadata-4-300x141.jpg 300w, https:\/\/diib.com\/learn\/wp-content\/uploads\/2021\/01\/html-metadata-4-1024x480.jpg 1024w, https:\/\/diib.com\/learn\/wp-content\/uploads\/2021\/01\/html-metadata-4-768x360.jpg 768w\" sizes=\"auto, (max-width: 1200px) 100vw, 1200px\" \/><\/p>\n<h3><b>Best Practices<\/b><\/h3>\n<ul>\n<li>Use a special title tag for your pages<\/li>\n<li>The titles should be brief and descriptive<\/li>\n<li>Avoid using generic and vague titles<\/li>\n<li>Use title or sentence case<\/li>\n<li>Do not use click-bait but rather something click-worthy<\/li>\n<li>Match search intent<\/li>\n<li>Use 60 characters or less<\/li>\n<li>Include target keywords where necessary<\/li>\n<\/ul>\n<h3><b>Finding and Fixing Title Tag Mistakes<\/b><\/h3>\n<p>Make sure that your title tag is not too long nor too short. Avoid unnecessarily long or wordy titles while keeping them concise and descriptive. Ensure that every page has a title tag. Avoid multiple HTML title tags on the page as the search engines may show an irrelevant title tag if there are multiple web pages. Duplicate titles across multiple pages. It is very important that each of your site&#8217;s pages has a unique and descriptive title.<br \/>\n[post_cta_website_uiux]<\/p>\n<h2 id=\"chapter3\"><b>Meta Description<\/b><\/h2>\n<p>A meta description gives a short description of a web page. Search engines use it to display a web page in the search results. It informs and gains the interest of users using a brief and accurate summary of the contents of a particular page. A meta description reassures the user that they are on the right page and exactly what they are looking for. However, they are not used by Google as a direct ranking factor. The image below shows a meta description:<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter size-full wp-image-4398\" src=\"https:\/\/diib.com\/learn\/wp-content\/uploads\/2021\/01\/html-metadata-7.jpg\" alt=\"HTML Metadata: Included Elements and Best Practices\" width=\"1200\" height=\"558\" srcset=\"https:\/\/diib.com\/learn\/wp-content\/uploads\/2021\/01\/html-metadata-7.jpg 1200w, https:\/\/diib.com\/learn\/wp-content\/uploads\/2021\/01\/html-metadata-7-300x140.jpg 300w, https:\/\/diib.com\/learn\/wp-content\/uploads\/2021\/01\/html-metadata-7-1024x476.jpg 1024w, https:\/\/diib.com\/learn\/wp-content\/uploads\/2021\/01\/html-metadata-7-768x357.jpg 768w\" sizes=\"auto, (max-width: 1200px) 100vw, 1200px\" \/><\/p>\n<h3><b>Best Practices<\/b><\/h3>\n<ul>\n<li>Write a unique and understandable description for each page<\/li>\n<li>Provide an accurate summary<\/li>\n<li>Do not use generic descriptions<\/li>\n<li>Use the main keywords appropriately in a meaningful sentence<\/li>\n<li>Use sentence case<\/li>\n<li>Do not use click-bait but write something click-worthy<\/li>\n<li>Match the purpose of the search<\/li>\n<li>Use 160 characters or less<\/li>\n<\/ul>\n<h3><b>Common Meta Description Mistakes<\/b><\/h3>\n<p>Most common mistakes in writing a meta description are almost similar to those of title tags.\u00a0 A meta description that is too long or too short. There is usually no limit on the length of a meta description. In order to fit the width of the device, the search results extracted are usually shortened. Another mistake is where a web page completely lacks a meta description.<\/p>\n<p>Ensure that you write it on your site. You can also have a page with more than one meta description however, this may confuse the search engines. Having similar meta descriptions on multiple pages is also a common mistake. Ensure that each page has its own unique description.<\/p>\n<h2 id=\"chapter4\"><b>Meta Robots<\/b><\/h2>\n<p>Meta robots allow the search engine to crawl web pages and also offer instructions on how to do so. The presence of your site in the search results can have a negative impact if you don&#8217;t use the correct attributes in the meta robots tag. Understanding this tag and effectively using it will greatly impact your SEO.<\/p>\n<p>The index values tell the bots to do the page indexing, while the noindex value instructs the bots not to do the page indexing. The bots are instructed by the following value to crawl links on the page to vouch for them, while the nofollow value instructs them not to crawl links on the page to avoid any endorsement.<\/p>\n<h3><b>Best Practices<\/b><\/h3>\n<p>Only use the meta robot tags when restricting Google crawls on a page and avoid blocking pages with meta robot tags in robots.<\/p>\n<h3 id=\"chapter5\"><b>Common Meta Robots Mistakes<\/b><\/h3>\n<p>Some of the typical meta robots mistakes include robots blocking no index pages. This makes it difficult for Google to see the noindex robots tag and may continue indexing the URL. A rogue meta noindex reduces the page&#8217;s organic traffic by restricting Google from indexing it. Rogue meta nofollow will prevent Google from crawling the page&#8217;s links and reduce the chances of discovering and indexing crucial content. This can also prevent the flow of PageRank to important pages.<\/p>\n<h2 id=\"chapter6\"><b>Meta Viewport<\/b><\/h2>\n<p>A meta viewport sets the web page&#8217;s visible area and gives instructions on how the page will be displayed by the browser on different screen sizes. This is important since mobile-friendly web pages are ranked higher in Google&#8217;s mobile search results.<\/p>\n<h4><b>Best Practices<\/b><\/h4>\n<p>It is crucial that you use meta viewport on all web pages and with the standard tag.<\/p>\n<h2 id=\"chapter7\"><b>Meta Charset<\/b><\/h2>\n<p>This tag determines the character encoding for your page or simply instructs the browser how to display the characters and text on the page. There are two common character sets including UTF-8 used for encoding Unicode and ISO-8859-1 used for encoding the Latin alphabet. Encoding with the wrong character will lead to the browser displaying incorrectly.<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter size-full wp-image-4395\" src=\"https:\/\/diib.com\/learn\/wp-content\/uploads\/2021\/01\/html-metadata-3.jpg\" alt=\"HTML Metadata: Included Elements and Best Practices\" width=\"642\" height=\"227\" srcset=\"https:\/\/diib.com\/learn\/wp-content\/uploads\/2021\/01\/html-metadata-3.jpg 642w, https:\/\/diib.com\/learn\/wp-content\/uploads\/2021\/01\/html-metadata-3-300x106.jpg 300w\" sizes=\"auto, (max-width: 642px) 100vw, 642px\" \/><\/p>\n<p>(Image Credit: <a href=\"https:\/\/learnwebtutorials.com\/why-need-meta-charset-utf-8\">Learn Web Tutorials<\/a>)<\/p>\n<p>Character formatting issues result in a negative user experience and your pages can look broken. Other problems it can cause include fewer people linking to your page, low dwell time, low time on page, high bounce rate and the search engine may not understand your content.<\/p>\n<h3><b>Best Practices<\/b><\/h3>\n<ul>\n<li>Always use meta charset tag on all your web pages<\/li>\n<li>Use Unicode\/UTF-8 where possible<\/li>\n<\/ul>\n<p>It is important to check all your web pages to ensure that they are using UTF-8 encoding.<\/p>\n<h2 id=\"chapter8\"><b>Meta Refresh Redirect<\/b><\/h2>\n<p>This tag redirects the user to another URL after a certain amount of time. Google understands and respects meta refresh redirect tags, but it is best not to use them in SEO. This is because most browsers do not support them and may cause confusion to the user while raising security concerns. It also takes up time since pages require parsing before the destination URL is visible. This is what that tag will look like:<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter size-full wp-image-4397\" src=\"https:\/\/diib.com\/learn\/wp-content\/uploads\/2021\/01\/html-metadata-6.jpg\" alt=\"HTML Metadata: Included Elements and Best Practices\" width=\"702\" height=\"124\" srcset=\"https:\/\/diib.com\/learn\/wp-content\/uploads\/2021\/01\/html-metadata-6.jpg 702w, https:\/\/diib.com\/learn\/wp-content\/uploads\/2021\/01\/html-metadata-6-300x53.jpg 300w\" sizes=\"auto, (max-width: 702px) 100vw, 702px\" \/><\/p>\n<p>(Image Credit: <a href=\"https:\/\/www.hostpapa.co.nz\/knowledgebase\/redirect-website-using-meta-tag\/\">HostPapa<\/a>)<\/p>\n<h3><b>Best Practices<\/b><\/h3>\n<ul>\n<li>Only use meta refresh redirect tags when necessary<\/li>\n<\/ul>\n<p>It is best that you avoid using meta refresh redirects where possible since they are a bad practice. If you have them on your web pages, you can use 301 or 302 redirects instead, where possible.<\/p>\n<h2 id=\"chapter9\"><b>Meta Keywords<\/b><\/h2>\n<p>Meta keywords are a good meta tag example that is used often these days. It is not advisable to add the meta keywords tag with a list of target keywords since Google stopped using keywords for rankings. This is because many people stuffed irrelevant keywords without users ever seeing those keywords. Google disregarded the keywords meta tag since it was often abused.<\/p>\n<p>Bing now uses the keywords meta tag to signal spam, so this could work against you. It is best that you remove the tag from your site.<\/p>\n<p>Metadata is data that provides information about other data. HTML meta data summarizes basic information about data making it easier to find and work with that particular data. It can be created manually for more accuracy or automatically to offer more basic information. Mata data is used for document files, images, videos, spreadsheets, and web pages.<\/p>\n<h2 id=\"chapter10\"><b>What is a Meta Tags Generator?<\/b><\/h2>\n<p>A meta tags generator allows you to develop the required and most useful HTML meta tags for SEO.<\/p>\n<h2><b>Best Practices When Using HTML Metadata<\/b><\/h2>\n<h3 id=\"chapter11\"><b>Declare a Doctype Always<\/b><\/h3>\n<p>A doctype declaration should be the first thing in your HTML meta tags for SEO. It notifies the browser about XHTML standards being used. It is advisable to use the XHTML 1.0 strict doctype, although it is considered a tough choice by some developers. It makes sure that your code conforms strictly to the latest standards.<\/p>\n<h3 id=\"chapter12\"><b>Use Meaningful Title Tags<\/b><\/h3>\n<p>Title tags enable the web page to be more meaningful and search-friendly.<\/p>\n<h3 id=\"chapter13\"><b>Use Descriptive List of Meta Tags<\/b><\/h3>\n<p>A list of meta tags adds more meaning to your web page for user agents like search engine spiders. It is important that the description does not have repeated words and phrases since the search engines will detect that. Use simple and straightforward descriptions when explaining your web page&#8217;s purpose.<\/p>\n<h3 id=\"chapter14\"><b>Divide Your Layout into Major Sections Using Divs<\/b><\/h3>\n<p>When constructing a website design, consider dividing the web page into sections in the first step. This will promote a clean and well-intended code while helping you to prevent confusion and using divs excessively when writing a complex and long markup.<\/p>\n<h3 id=\"chapter15\"><b>Avoid Mixing Content From Presentation<\/b><\/h3>\n<p>Do not mix your HTML content with the content visual presentation provided by CSS. Creating a separate CSS file for your styles rather than using inline styles in your HTML is very essential. This will enable you and other developers working on the code to make quick changes and ensure that your content is more understandable for user agents.<\/p>\n<h3 id=\"chapter16\"><b>Minify and Unify CSS<\/b><\/h3>\n<p>Typical websites have one major CSS file and probably other things like browser-specific fixes and CSS reset. When each C file makes an HTTP request, it slows down the website load times. Taking out characters that are not needed like newlines, spaces, and tabs from all your code and unify files that can be integrated together. This can help solve that problem and improve the load times of your website.<\/p>\n<h3 id=\"chapter17\"><b>Minify, Unify and Move Down JavaScript<\/b><\/h3>\n<p>Avoid using inline JavaScript but instead, try minifying and unifying your JavaScript libraries to lower the number of HTTP requests needed to generate one of your pages. However, you can not have parallel downloads in most browsers meaning the browser will not download anything else while downloading JavaScript, making the page appear as if it&#8217;s loading slowly.<\/p>\n<p>To avoid this, you can load your JavaScript after loading your CSS by placing the JavaScript at the end of your HTML document where applicable, preferably before closing the body tag.<\/p>\n<h3 id=\"chapter18\"><b>Use Heading Elements Wisely<\/b><\/h3>\n<p>Using h1 to h6 elements to indicate your HTML&#8217;s content order makes your content more user-friendly for, user agent, search engines, and screen-reading software. When using blogs, it is best that you use the h1 element for the title of the blog post as opposed to the site&#8217;s name since it is ideal for search engines.<\/p>\n<h3 id=\"chapter19\"><b>Use the Right HTML tags at the Right Place<\/b><\/h3>\n<p>It is important that you know the available HTML tags and how to use them accurately to avoid confusion and create a relevant content structure.<br \/>\n[post_cta_second]<\/p>\n<h3 id=\"chapter20\"><b>Avoid Using Divs Excessively<\/b><\/h3>\n<p>Some developers wrap div tags on other div tags that have more div tags creating numerous divs. The div is considered a meaningless element that should only be used when there are no other available suitable elements according to the W3C HTML specifications. Avoid having numerous divs by using them responsibly and only when it&#8217;s necessary.<\/p>\n<h3 id=\"chapter21\"><b>Use an Unordered List for Navigation<\/b><\/h3>\n<p>The navigation element is a very essential factor in website design when combined with CSS. It helps your navigation menus be semantic and beautiful. Here are two ways to do this:<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter size-full wp-image-4394\" src=\"https:\/\/diib.com\/learn\/wp-content\/uploads\/2021\/01\/html-metadata-2.jpg\" alt=\"HTML Metadata: Included Elements and Best Practices\" width=\"640\" height=\"360\" srcset=\"https:\/\/diib.com\/learn\/wp-content\/uploads\/2021\/01\/html-metadata-2.jpg 640w, https:\/\/diib.com\/learn\/wp-content\/uploads\/2021\/01\/html-metadata-2-300x169.jpg 300w\" sizes=\"auto, (max-width: 640px) 100vw, 640px\" \/><\/p>\n<p>(Image Credit: <a href=\"https:\/\/www.studytonight.com\/cascading-style-sheet\/css-navigation-bar-style\">Studytonight<\/a>)<\/p>\n<h3 id=\"chapter22\"><b>Close Your Tags<\/b><\/h3>\n<p>W3C specifications require that you close all your tags. Other browsers may correctly display your pages even though failure to close your tags is invalid under normal standards.<\/p>\n<h3 id=\"chapter23\"><b>Use Lower Case Markup<\/b><\/h3>\n<p>Keeping your markup lower-cased is a standard practice in the industry. Capitalizing your markup affects your code readability but does not change the display of your web pages.<\/p>\n<h3 id=\"chapter24\"><b>Use Modular IE Fixes<\/b><\/h3>\n<p>If you are having problems with your pages, you can use conditional comments to focus on the internet explorer. Ensure that you make the fixes modular to ensure that your work is future-proof so that the older version of IE will not require any support.<\/p>\n<h3 id=\"chapter25\"><b>Validate Your Code<\/b><\/h3>\n<p>You should not view validation as the end-all evaluation of good work against bad work. A work that validates is not necessarily good code and alternatively, a work that does not fully validate is not necessarily bad code.<\/p>\n<p>You can use auto-validation services as useful debuggers to identify rendering errors. Validate your work frequently when writing HTML to avoid issues that may be difficult to identify once you have completed your work.<\/p>\n<h3 id=\"chapter26\"><b>Write Consistently Formatted Code<\/b><\/h3>\n<p>Writing a clean and well-intended code base brings out your professionalism and makes it easier for developers who may work on your code. You will also increase the readability of your work when you write a properly indented markup from the start. For example:<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter size-full wp-image-4393\" src=\"https:\/\/diib.com\/learn\/wp-content\/uploads\/2021\/01\/html-metadata-1.jpg\" alt=\"HTML Metadata: Included Elements and Best Practices\" width=\"1200\" height=\"540\" srcset=\"https:\/\/diib.com\/learn\/wp-content\/uploads\/2021\/01\/html-metadata-1.jpg 1200w, https:\/\/diib.com\/learn\/wp-content\/uploads\/2021\/01\/html-metadata-1-300x135.jpg 300w, https:\/\/diib.com\/learn\/wp-content\/uploads\/2021\/01\/html-metadata-1-1024x461.jpg 1024w, https:\/\/diib.com\/learn\/wp-content\/uploads\/2021\/01\/html-metadata-1-768x346.jpg 768w\" sizes=\"auto, (max-width: 1200px) 100vw, 1200px\" \/><\/p>\n<p>(Image Credit: <a href=\"https:\/\/html.com\/\">html.com<\/a>)<\/p>\n<h3 id=\"chapter27\"><b>Avoid Excessive Comments<\/b><\/h3>\n<p>The purpose of documenting your code is to make it understandable and commenting your code is reasonable and logical for programming languages like Java, PHP, and C#. However, markup is very self-explanatory and you do not need to comment on every line in XHTML\/ HTML. Reviewing your work for semantics will help you if you are commenting a lot in your HTML to explain the process.<\/p>\n<h2><b>Diib\u00ae: Get Your HTML Metadata Stats Here!<\/b><\/h2>\n<p>Using these elements and following the guidelines will help you in your SEO efforts.<\/p>\n<p>Elements like a good meta description will increase your click-through rates from searches even though it doesn&#8217;t improve your ranking. Meta tags are now being used in social media platforms like Twitter and Facebook. You can use tags to check how your data is shared on Facebook. Partnering with Diib Digital will give you the vital metrics regarding your metadata so you can make effective decisions about your website health.<\/p>\n<p>Here are some of the features of our User Dashboard we&#8217;re sure you&#8217;ll love:<\/p>\n<ul>\n<li>Customized Objectives designed to enhance website performance<\/li>\n<li>Alerts that tell you about your Domain Authority other technical SEO issues<\/li>\n<li>Broken pages where you have backlinks (404 checker)<\/li>\n<li>Keyword, backlink, and indexing monitoring and tracking tools<\/li>\n<li>User experience and mobile speed optimization<\/li>\n<li>Image title optimization<\/li>\n<\/ul>\n<p><a href=\"http:\/\/www.diib.com\/learn\">Click here<\/a> for your free scan or simply call 800-303-3510 to speak to one of our growth experts.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Elements and Best Practices in HTML Metadata Meta tags are brief extracts of a code that inform search engines about crucial information about your webpage. They also control how web browsers display to visitors. Meta tags are present on every web page and you can only see them in the HTML code. Here is a [&hellip;]<\/p>\n","protected":false},"author":2,"featured_media":4399,"comment_status":"closed","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"inline_featured_image":false,"footnotes":""},"categories":[1],"tags":[],"class_list":["post-4392","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-seo"],"acf":{"faq":"<h2 id=\"chapter28\"><b>FAQ's<\/b><\/h2>\r\n<section class=\"accordion-section clearfix mt-3\" aria-label=\"Question Accordions\">\r\n<div class=\"container\">\r\n<div id=\"accordion\" class=\"panel-group\" role=\"tablist\" aria-multiselectable=\"true\">\r\n<div class=\"panel panel-default\">\r\n<div id=\"heading0\" class=\"panel-heading\" role=\"tab\">\r\n<h2 class=\"panel-title\"><a class=\"collapsed\" title=\"\" role=\"button\" href=\"#collapse0\" data-toggle=\"collapse\" data-parent=\"#accordion\" aria-expanded=\"true\" aria-controls=\"collapse0\">What is metadata in HTML?<\/a><\/h2>\r\n<\/div>\r\n<div id=\"collapse0\" class=\"panel-collapse collapse\" role=\"tabpanel\" aria-labelledby=\"heading0\">\r\n<div class=\"panel-body px-3 mb-4\">\r\n\r\nThis is the piece of data used by browsers and search engines to define how the page is supposed to be displayed and read and\/or reloaded.\r\n\r\n<\/div>\r\n<\/div>\r\n<\/div>\r\n<div class=\"panel panel-default\">\r\n<div id=\"heading1\" class=\"panel-heading\" role=\"tab\">\r\n<h2 class=\"panel-title\"><a class=\"collapsed\" title=\"\" role=\"button\" href=\"#collapse1\" data-toggle=\"collapse\" data-parent=\"#accordion\" aria-expanded=\"true\" aria-controls=\"collapse1\">How do you add meta tags in HTML?<\/a><\/h2>\r\n<\/div>\r\n<div id=\"collapse1\" class=\"panel-collapse collapse\" role=\"tabpanel\" aria-labelledby=\"heading1\">\r\n<div class=\"panel-body px-3 mb-4\">\r\n\r\nIf the file already exists on your website, you can download it using an FTP client and then edit it using your preferred text editor.\r\n\r\n<\/div>\r\n<\/div>\r\n<\/div>\r\n<div class=\"panel panel-default\">\r\n<div id=\"heading2\" class=\"panel-heading\" role=\"tab\">\r\n<h2 class=\"panel-title\"><a class=\"collapsed\" title=\"\" role=\"button\" href=\"#collapse2\" data-toggle=\"collapse\" data-parent=\"#accordion\" aria-expanded=\"true\" aria-controls=\"collapse2\">Is HTML a metadata?<\/a><\/h2>\r\n<\/div>\r\n<div id=\"collapse2\" class=\"panel-collapse collapse\" role=\"tabpanel\" aria-labelledby=\"heading2\">\r\n<div class=\"panel-body px-3 mb-4\">\r\n\r\nHTML is the official way of adding your metadata to a document. Metadata is data that describes data.\r\n\r\n<\/div>\r\n<\/div>\r\n<\/div>\r\n<div class=\"panel panel-default\">\r\n<div id=\"heading3\" class=\"panel-heading\" role=\"tab\">\r\n<h2 class=\"panel-title\"><a class=\"collapsed\" title=\"\" role=\"button\" href=\"#collapse3\" data-toggle=\"collapse\" data-parent=\"#accordion\" aria-expanded=\"true\" aria-controls=\"collapse3\">How do you use metadata?<\/a><\/h2>\r\n<\/div>\r\n<div id=\"collapse3\" class=\"panel-collapse collapse\" role=\"tabpanel\" aria-labelledby=\"heading3\">\r\n<div class=\"panel-body px-3 mb-4\">\r\n\r\nThis is a really important way to describe information about documents, videos, images, web pages ect. Information such as the name of the file, the date it was created, how large the file is, resolution, video length, and more.\r\n\r\n<\/div>\r\n<\/div>\r\n<\/div>\r\n<div class=\"panel panel-default\">\r\n<div id=\"heading4\" class=\"panel-heading\" role=\"tab\">\r\n<h2 class=\"panel-title\"><a class=\"collapsed\" title=\"\" role=\"button\" href=\"#collapse4\" data-toggle=\"collapse\" data-parent=\"#accordion\" aria-expanded=\"true\" aria-controls=\"collapse4\">What is the difference between data and metadata?<\/a><\/h2>\r\n<\/div>\r\n<div id=\"collapse4\" class=\"panel-collapse collapse\" role=\"tabpanel\" aria-labelledby=\"heading4\">\r\n<div class=\"panel-body px-3 mb-4\">\r\n\r\nThe main difference is that data is just content that can provide a description or even a report on anything. On the other hand, metadata describes the relevant information on said data, giving them more context for data users.\r\n\r\n<\/div>\r\n<\/div>\r\n<\/div>\r\n<\/div>\r\n<\/div>\r\n<\/section>","time_read":"11","menu-side":"<a href=\"#chapter1\">Elements and Best Practices in HTML Metadata<\/a>\r\n<a href=\"#chapter2\">Meta Title<\/a>\r\n<a href=\"#chapter3\">Meta Description<\/a>\r\n<a href=\"#chapter4\">Meta Robots<\/a>\r\n<a href=\"#chapter5\">Common Meta Robots Mistakes<\/a>\r\n<a href=\"#chapter6\">Meta Viewport<\/a>\r\n<a href=\"#chapter7\">Meta Charset<\/a>\r\n<a href=\"#chapter8\">Meta Refresh Redirect<\/a>\r\n<a href=\"#chapter9\">Meta Keywords<\/a>\r\n<a href=\"#chapter10\">What is a Meta Tags Generator?<\/a>\r\n<a href=\"#chapter11\">Declare a Doctype Always<\/a>\r\n<a href=\"#chapter12\">Use Meaningful Title Tags<\/a>\r\n<a href=\"#chapter13\">Use Descriptive List of Meta Tags<\/a>\r\n<a href=\"#chapter14\">Divide Your Layout into Major Sections Using Divs<\/a>\r\n<a href=\"#chapter15\">Avoid Mixing Content From Presentation<\/a>\r\n<a href=\"#chapter16\">Minify and Unify CSS<\/a>\r\n<a href=\"#chapter17\">Minify, Unify and Move Down JavaScript<\/a>\r\n<a href=\"#chapter18\">Use Heading Elements Wisely<\/a>\r\n<a href=\"#chapter19\">Use the Right HTML tags at the Right Place<\/a>\r\n<a href=\"#chapter20\">Avoid Using Divs Excessively<\/a>\r\n<a href=\"#chapter21\">Use an Unordered List for Navigation<\/a>\r\n<a href=\"#chapter22\">Close Your Tags<\/a>\r\n<a href=\"#chapter23\">Use Lower Case Markup<\/a>\r\n<a href=\"#chapter24\">Use Modular IE Fixes<\/a>\r\n<a href=\"#chapter25\">Validate Your Code<\/a>\r\n<a href=\"#chapter26\">Write Consistently Formatted Code<\/a>\r\n<a href=\"#chapter27\">Avoid Excessive Comments<\/a>\r\n<a href=\"#chapter28\">FAQ's<\/a>","cta_title":"How can diib\u00ae help me improve my website today?","cta_text":"<p>diib\u00ae connects to your Google Analytics account in about 60 seconds (optional to start) and shows you exactly what to fix to grow your website. More than 800,000 businesses use diib, starting with a free website scan. PRO memberships start at just $29.99 a month.<\/p>\r\n<p>Because we serve so many members, we can also offer <strong>wholesale pricing<\/strong> on high-quality services, including:<\/p>\r\n<ul>\r\n<li>Backlink development on DA10\u2013DA80 websites<\/li>\r\n<li>Professional Google Analytics setup<\/li>\r\n<li>Website speed analysis and optimization<\/li>\r\n<li>Keyword research<\/li>\r\n<li>Article writing and publishing (500\u20135,000+ words)<\/li>\r\n<\/ul>\r\n<p><strong>Enter your website below to create your free account and see everything we offer our members.<\/strong><\/p>","new_slogan":"Our AI will Check Your Website for Free in 60 Seconds!","hero_button_text":"Check My Website Free","answer_first":"","meta_description":"","learn_faq_1_question":"","learn_faq_1_answer":"","learn_faq_2_question":"","learn_faq_2_answer":"","learn_faq_3_question":"","learn_faq_3_answer":"","learn_faq_4_question":"","learn_faq_4_answer":"","learn_faq_5_question":"","learn_faq_5_answer":"","learn_faq_6_question":"","learn_faq_6_answer":""},"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v18.6 - https:\/\/yoast.com\/wordpress\/plugins\/seo\/ -->\n<title>HTML Metadata: Included Elements and Best Practices - diib\u00ae - Learn<\/title>\n<meta name=\"description\" content=\"Discover the best practices and elements for HTML metadata, including meta tags, titles, descriptions, and robots. Optimize your site&#039;s performance and SEO with Diib\u00ae.\" \/>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/marketing-optimization.diib.com\/learn\/html-metadata\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"HTML Metadata: Included Elements and Best Practices - diib\u00ae - Learn\" \/>\n<meta property=\"og:description\" content=\"Discover the best practices and elements for HTML metadata, including meta tags, titles, descriptions, and robots. Optimize your site&#039;s performance and SEO with Diib\u00ae.\" \/>\n<meta property=\"og:url\" content=\"https:\/\/marketing-optimization.diib.com\/learn\/html-metadata\/\" \/>\n<meta property=\"og:site_name\" content=\"diib\u00ae - Learn\" \/>\n<meta property=\"article:author\" content=\"https:\/\/www.linkedin.com\/in\/daniel-urmann-1927147b\/\" \/>\n<meta property=\"article:published_time\" content=\"2024-11-13T07:34:48+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2026-09-23T15:44:05+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/marketing-optimization.diib.com\/learn\/wp-content\/uploads\/2021\/01\/html-metadata-cover.jpg\" \/>\n\t<meta property=\"og:image:width\" content=\"1400\" \/>\n\t<meta property=\"og:image:height\" content=\"934\" \/>\n\t<meta property=\"og:image:type\" content=\"image\/jpeg\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:label1\" content=\"Written by\" \/>\n\t<meta name=\"twitter:data1\" content=\"Daniel Urmann\" \/>\n\t<meta name=\"twitter:label2\" content=\"Est. reading time\" \/>\n\t<meta name=\"twitter:data2\" content=\"12 minutes\" \/>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"HTML Metadata: Included Elements and Best Practices - diib\u00ae - Learn","description":"Discover the best practices and elements for HTML metadata, including meta tags, titles, descriptions, and robots. Optimize your site's performance and SEO with Diib\u00ae.","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":"https:\/\/marketing-optimization.diib.com\/learn\/html-metadata\/","og_locale":"en_US","og_type":"article","og_title":"HTML Metadata: Included Elements and Best Practices - diib\u00ae - Learn","og_description":"Discover the best practices and elements for HTML metadata, including meta tags, titles, descriptions, and robots. Optimize your site's performance and SEO with Diib\u00ae.","og_url":"https:\/\/marketing-optimization.diib.com\/learn\/html-metadata\/","og_site_name":"diib\u00ae - Learn","article_author":"https:\/\/www.linkedin.com\/in\/daniel-urmann-1927147b\/","article_published_time":"2024-11-13T07:34:48+00:00","article_modified_time":"2026-09-23T15:44:05+00:00","og_image":[{"width":1400,"height":934,"url":"https:\/\/marketing-optimization.diib.com\/learn\/wp-content\/uploads\/2021\/01\/html-metadata-cover.jpg","type":"image\/jpeg"}],"twitter_card":"summary_large_image","twitter_misc":{"Written by":"Daniel Urmann","Est. reading time":"12 minutes"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"WebSite","@id":"https:\/\/marketing-optimization.diib.com\/learn\/#website","url":"https:\/\/marketing-optimization.diib.com\/learn\/","name":"diib\u00ae - Learn","description":"","potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/marketing-optimization.diib.com\/learn\/?s={search_term_string}"},"query-input":"required name=search_term_string"}],"inLanguage":"en-US"},{"@type":"ImageObject","@id":"https:\/\/marketing-optimization.diib.com\/learn\/html-metadata\/#primaryimage","inLanguage":"en-US","url":"https:\/\/diib.com\/learn\/wp-content\/uploads\/2021\/01\/html-metadata-cover.jpg","contentUrl":"https:\/\/diib.com\/learn\/wp-content\/uploads\/2021\/01\/html-metadata-cover.jpg","width":1400,"height":934,"caption":"HTML Metadata: Included Elements and Best Practices"},{"@type":"WebPage","@id":"https:\/\/marketing-optimization.diib.com\/learn\/html-metadata\/#webpage","url":"https:\/\/marketing-optimization.diib.com\/learn\/html-metadata\/","name":"HTML Metadata: Included Elements and Best Practices - diib\u00ae - Learn","isPartOf":{"@id":"https:\/\/marketing-optimization.diib.com\/learn\/#website"},"primaryImageOfPage":{"@id":"https:\/\/marketing-optimization.diib.com\/learn\/html-metadata\/#primaryimage"},"datePublished":"2024-11-13T07:34:48+00:00","dateModified":"2026-09-23T15:44:05+00:00","author":{"@id":"https:\/\/marketing-optimization.diib.com\/learn\/#\/schema\/person\/a595ca0fb3b2cc89407e678575ea2c57"},"description":"Discover the best practices and elements for HTML metadata, including meta tags, titles, descriptions, and robots. Optimize your site's performance and SEO with Diib\u00ae.","breadcrumb":{"@id":"https:\/\/marketing-optimization.diib.com\/learn\/html-metadata\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/marketing-optimization.diib.com\/learn\/html-metadata\/"]}]},{"@type":"BreadcrumbList","@id":"https:\/\/marketing-optimization.diib.com\/learn\/html-metadata\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/diib.com\/learn\/"},{"@type":"ListItem","position":2,"name":"HTML Metadata: Included Elements and Best Practices"}]},{"@type":"Person","@id":"https:\/\/marketing-optimization.diib.com\/learn\/#\/schema\/person\/a595ca0fb3b2cc89407e678575ea2c57","name":"Daniel Urmann","image":{"@type":"ImageObject","@id":"https:\/\/marketing-optimization.diib.com\/learn\/#personlogo","inLanguage":"en-US","url":"https:\/\/secure.gravatar.com\/avatar\/7fda32967ede67ed7bd612042ad452f060bd6475b37fbc7c8fc17d425191d047?s=96&d=mm&r=g","contentUrl":"https:\/\/secure.gravatar.com\/avatar\/7fda32967ede67ed7bd612042ad452f060bd6475b37fbc7c8fc17d425191d047?s=96&d=mm&r=g","caption":"Daniel Urmann"},"description":"Daniel Urmann is the co-founder of Diib.com. Over the past 17 years Daniel has helped thousands of business grow online through SEO, social media, and paid advertising. Today, Diib helps over 150,000 business globally grow online with their SaaS offerings. Daniel\u2019s interest include SMB analytics, big data, predictive analytics, enterprise and SMB search engine optimization (SEO), CRO optimization, social media advertising, A\/B testing, programatic and geo-targeting, PPC, and e-commerce. He holds a Master of Business Administration (MBA) focused in Finance and E-commerce from Cornell University \u2013 S.C. Johnson Graduate School of Management.","sameAs":["https:\/\/www.linkedin.com\/in\/daniel-urmann-1927147b\/","https:\/\/www.facebook.com\/daniel.urmann.5"],"url":"https:\/\/diib.com\/learn\/author\/dan\/"}]}},"_links":{"self":[{"href":"https:\/\/diib.com\/learn\/wp-json\/wp\/v2\/posts\/4392","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/diib.com\/learn\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/diib.com\/learn\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/diib.com\/learn\/wp-json\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/diib.com\/learn\/wp-json\/wp\/v2\/comments?post=4392"}],"version-history":[{"count":4,"href":"https:\/\/diib.com\/learn\/wp-json\/wp\/v2\/posts\/4392\/revisions"}],"predecessor-version":[{"id":10862,"href":"https:\/\/diib.com\/learn\/wp-json\/wp\/v2\/posts\/4392\/revisions\/10862"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/diib.com\/learn\/wp-json\/wp\/v2\/media\/4399"}],"wp:attachment":[{"href":"https:\/\/diib.com\/learn\/wp-json\/wp\/v2\/media?parent=4392"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/diib.com\/learn\/wp-json\/wp\/v2\/categories?post=4392"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/diib.com\/learn\/wp-json\/wp\/v2\/tags?post=4392"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}