patternhtmlMinor
Cardshifter website meta-tags for SEO
Viewed 0 times
websiteseometatagscardshifterfor
Problem
I have written the following meta-tags for SEO, please let me know if you think this could use any improvement. I have used this article to help me put it together. I have left out the page content on purpose, if you wish to see it I posted it here on CR and on Github (note the following updates have not been committed yet, they are only in my local directory).
Cardshifter TCG
Solution
- Charset
You declare a HTML5 doctype and two charsets. You can remove the first of the two rules and leave this:
- IE rendering engine
The browser should choose the fitting rendering engine on its own. Setting
IE=edge should do nothing in most cases unless the default rendering engine was changed by the user.That said, it doesn’t do harm.
- Comments
Don’t state the obvious. We can see every `
thing is a meta tag. Also there are other things under this comment as well. title and link are not meta tags.
I’d also leave out comments like the ones for twitter tags. Separating them by new lines creates enough distinctiveness.
- HTML Shiv/Shim
Don’t omit the type` attribute for browsers that don’t understand HTML5, because it is not valid HTML 4/XHTML. You include the shiv to ensure IE8 support for HTML5 elements, so you should definitely have it there.
- SEO
Having a good structured document is the one thing which helps. You have description that search engines use, you have a page title, you probably will have fitting headings in your actual content.
However that’s just the foundation. With just that, search engines won’t give you a good ranking. The important part is the content. Make sure you have a good document outline.
Code Snippets
<meta http-equiv="content-type" content="text/html; charset=UTF-8" /><meta charset="utf-8"><meta http-equiv="X-UA-Compatible" content="IE=edge" /><!-- META-TAGS --><!--[if lt IE 9]>
<script src="https://oss.maxcdn.com/html5shiv/3.7.2/html5shiv.min.js"></script>
<script src="https://oss.maxcdn.com/respond/1.4.2/respond.min.js"></script>
<![endif]-->Context
StackExchange Code Review Q#74634, answer score: 5
Revisions (0)
No revisions yet.