Skip to content

Instantly share code, notes, and snippets.

@Lotuashvili
Created June 7, 2014 16:58
Show Gist options
  • Save Lotuashvili/b82a225ffa5de559e0b7 to your computer and use it in GitHub Desktop.
Save Lotuashvili/b82a225ffa5de559e0b7 to your computer and use it in GitHub Desktop.
Simple HTML File With Meta Tags
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" lang="en">
<head>
<title>Simple HTML With Meta Tags</title>
<!-- START OF META TAGS -->
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> <!-- The meta content type tag is used to declare the character encoding of a website. It’s best to add this piece of information to prevent browsers from guessing the character encoding which can lead to display problems, but it doesn't influence rankings or CTR -->
<meta name=”description” content=”Here goes your site description” /> <!-- This tag used to have a lot more ranking power, but algorithm updates have diminished its effect. It won’t improve your ranking, however, the meta description tag can still be useful because it is used on search engine result pages. -->
<meta name=”keywords” content=”meta tags,search engine optimization” /> <!-- In the meta keywords tag you can store a couple of keywords about the content of the page. However, it won’t improve your ranking. If you want to implement it (though I can’t imagine why you would), use the following format -->
<meta name=”robots” content=”noindex, nofollow” /> <!-- This meta tags tells search engines not to index the page and prevent them from following the links. If you happen to be using two contradictory terms (e.g. noindex and index), Google will choose the most restrictive option -->
<meta http-equiv="content-language" content="en" />
<meta name=”google” content=”notranslate” /> <!-- Sometimes, Google will provide a link to a translation in the SERPs. But there may be situations where you don’t want this to happen. If you don’t want Google to translate the page, add this meta tag -->
<!-- END OF META TAGS -->
</head>
<body>
<center><h2>Simple html file.</h2></center>
</body>
</html>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment