A ready-to-use HTML boilerplate for optimizing your website's meta tags for search engines and social media platforms.
- Clone or download the repository to your local machine.
- Replace the placeholder values in the HTML code with your own information.
- Add the code to the
<head>
section of your website's HTML file.
Meta Tag | Description |
---|---|
charset |
Specifies the character encoding of the document |
viewport |
Controls the viewport's dimensions and scaling |
theme-color |
Specifies the theme color for the site |
robots |
Informs search engine crawlers whether or not to index or follow links on the page |
title |
Specifies the title of the document |
description |
Provides a concise summary of the page content |
keywords |
Provides a comma-separated list of keywords relevant to the page |
alternate |
Specifies alternate language versions of the page |
icon |
Specifies the icon to represent the page |
og:type |
Specifies the type of website or page being shared on social media |
og:url |
Provides the canonical URL of the page |
og:title |
Specifies the title of the page to display on social media |
og:description |
Provides a summary of the page content to display on social media |
og:image |
Specifies the image to display on social media |
og:site_name |
Specifies the name of the website to display on social media |
twitter:card |
Specifies the type of card to display on Twitter |
twitter:url |
Provides the canonical URL of the page |
twitter:title |
Specifies the title of the page to display on Twitter |
twitter:description |
Provides a summary of the page content to display on Twitter |
twitter:image |
Specifies the image to display on Twitter |
script type="application/ld+json" |
Provides structured data in JSON-LD format for search engine crawlers |
You can generate a favicon using a website like favicon.io.
This project is licensed under the MIT License - see the LICENSE file for details.
Feel free to use and modify the code for your own projects. If you found this repository helpful, please consider giving it a star.