Can I omit "og:url" when using link rel="canonical" - html

When setting up a new webpage and to prevent duplicate content issues on search engines, I am using the canonical tag <link rel="canonical" href="https://example.com/slug" />.
I came across of the open graph protocol to improve the experience when sharing the webpage on social media.
In my case I am planning to use canonical to eliminate duplicates between http/https, non-www/www or remove url parameters such as https://example.com/slug?foo=bar.
For this case, it looks like the canonical tag and the open graph metadata og:url would do the same function. Should I include both or could I safely omit the og:url metadata?
Thank you in advance

You should use both! The reason is that og:url is only used by social media bots (Facebook, Twitter, LinkedIn), but search engine bots like Google bot will look for rel="canonical" when indexing your content.

Related

What does "vr:canonical" mean?

What namespace/scheme/whatever does this "vr:canonical" come from?
<meta property="vr:canonical" content="URL_FROM_OTHER_PAGE" />
(edit: I know canonical links, just curious about that "vr:" thing)
After analyzing the page (and the code of its used trackers and counters and advertising scripts), this seems to be a property used by an advertising tool named "VisualRevenue", a product by the Company Outbrain.
Thanks for your effort.
For example:
<link rel="canonical" href="https://moz.com/blog" />
This would tell Google that the page in question should be treated as though it were a copy of the URL above and that all of the link & content metrics the engines apply should technically flow back to that URL.
The Canonical URL tag attribute is similar in many ways to a 301 redirect from an SEO perspective. In essence, you're telling the engines that multiple pages should be considered as one (which a 301 does), without actually redirecting visitors to the new URL

What are the meta tags I must use in html? [duplicate]

Can anybody tell me that why we use meta tag in html
Meta tags helps your website getting found by search engines like Google, Bing etc.
When you use it the right way in combination with some landing page you can get found in the best way. Another method is the use of link-exchange. If you use the 3 methods it could get your websites way better indexed by google then if you only use the meta-tags.
If you want to know more about it, just search on google with keywords: landing page, indexed by google, meta-tags, link-exchange etc.
Meta tags describe your page. Search engines have famously used them to help index your pages. Its got nothing to do with asp.net but rather the HTML output that is produced. See here for more information. Be aware although that search engines rely less on them as they do now and incorporate other factors into their indexing.
Meta tags are used for many things. The most important use for meta tags would be probably for SEO purposes. The meta description is probably one of the most important parts of the meta tag because that is what shows up under the title on Search Engines such as Google or Yahoo. The following link will give you more information about SEO and how you can use the meta tag. https://blog.kissmetrics.com/website-source-code-seo/
The meta tag can also do many other things such as set the author, viewport and keywords of a web page. Here is a link that will tell you a lot more about what the meta tag is used for. https://www.w3schools.com/Tags/tag_meta.asp

Can the canonical tag be used on all pages?

Im working on a site that has had an SEO expert review it. They have advised me that we should apply canonical tags on every other page
<!-- http://www.example.com/detail/table&r=dining-room -->
<link rel="canonical" href="http://www.example.com/detail/table"/>
is it really required that the canonical tag only appears on every other page, or will it play nicely if it appears on the same page?
The reason I ask this is: isn't the link also telling Google that it is infact on the right page?
RFC 6596: The Canonical Link Relation specifies:
The target (canonical) IRI MAY:
o […]
o Be self-referential (context IRI identical to target IRI).
So, yes, you can use rel-canonical even on the canonical page.
It seems to be an argument between Google and Bing. Google doesn't mind if you have the canonical tag pointing to itself. Bing does mind and you lose their trust for the use of canonical tags. Look at this article: http://www.northsideseo.com/google-vs-bing-canonical-tag/

What is <link rel="image_src">

Today I came across a <link rel="image_src"> tag. I don't know about it, so I use google. Google tell me that this tag are similar to og:image. So I came to open graph main site to read about it http://ogp.me/, but i found nothing about link rel="image_src". So this tag is replacement to meta property="og:image" or is in special tag in another specification ? How use this tag or for what is used?
The rel attribute specifies the type of the link, i.e. the kind of the relationship between the document and the linked resource. Usually just a few keywords, like stylesheet and icon, are used. Although many other keywords have been proposed and registered, most of them are write-only: they are meant to express something, but nobody cares (no software uses the information).
The extension mechanisms of HTML5 include, in the description of link types, a somewhat obscure mechanism that allows, in theory, anyone register his favorite keyword in the existing rel values wiki to make documents using it as rel value “conforming”.
And image_src has indeed been registered there, with the information that it is used to “specify a Webpage Icon for use by Facebook, Yahoo, Digg, etc.”, no specification has been identified but an article about it is linked to, and it is “probably redundant with rel=icon”.
You can use this tag to use an image as the thumb for link share.
When someone posts a link to your site on social media, such as Facebook, the image that is displayed with your link is usually the first one in your code. This may not be the image that best fits defines your site, and it may not fit well in the small box that Facebook posts. The link rel="image_src" tag lets you control what image (or images, you can have more than one by stacking separate references) is displayed alongside your link.

Meta tag in html

Can anybody tell me that why we use meta tag in html
Meta tags helps your website getting found by search engines like Google, Bing etc.
When you use it the right way in combination with some landing page you can get found in the best way. Another method is the use of link-exchange. If you use the 3 methods it could get your websites way better indexed by google then if you only use the meta-tags.
If you want to know more about it, just search on google with keywords: landing page, indexed by google, meta-tags, link-exchange etc.
Meta tags describe your page. Search engines have famously used them to help index your pages. Its got nothing to do with asp.net but rather the HTML output that is produced. See here for more information. Be aware although that search engines rely less on them as they do now and incorporate other factors into their indexing.
Meta tags are used for many things. The most important use for meta tags would be probably for SEO purposes. The meta description is probably one of the most important parts of the meta tag because that is what shows up under the title on Search Engines such as Google or Yahoo. The following link will give you more information about SEO and how you can use the meta tag. https://blog.kissmetrics.com/website-source-code-seo/
The meta tag can also do many other things such as set the author, viewport and keywords of a web page. Here is a link that will tell you a lot more about what the meta tag is used for. https://www.w3schools.com/Tags/tag_meta.asp