HTML Meta Tag

2.19.2024
Copy

HTML Meta Tag

By Tony 2.19.2024
Favorite Share Report


How are users supposed to get to your website if they can't even find it? Meta tags provide additional information, or metadata, to the browser, search engine, and other machines. They make your website show up on the search engine, they also show additional information, description, and image for the website in social media posts, messages, and more.

There are 5 different meta tags in the above example. The first one, charset meta tag, tells the browser this webpage's character set is UTF-8, so the browser can display the unicode characters correctly. The second one, description meta tag, has the description as the name attribute and the actual description of the page within the content attribute. The same rule applies to the author and the keywords metatags. Last but not least, the viewport meta tag tells the browser how to display the web page on different sizes of screens, so the page is always optimized and doesn't look bad no matter what the device is. The code example doesn't have an output because all meta tags are located in the head tags, where information isn't visible.

In conclusion, meta tags provide the browser more information about the page so users can browse it better. They also provide search engine bots a short description about the page to help them index it, so your page can actually show up when using a search engine to search your site. Other than that, there are still more uses of meta tags on a web page, so remember to check out our references or other resources for more info!