Difference between #165 and #166 of
Yii v2 snippet guide

Revision #166 has been created by rackycz on Oct 18, 2019, 9:54:17 AM with the memo:

seo
« previous (#165) next (#167) »

Changes

Title unchanged

Yii v2 snippet guide

Category unchanged

Tutorials

Yii version unchanged

2.0

Tags unchanged

tutorial,beginner,yii2

Content changed

[...]
It will show some statistics and recommend enhancements so that your web is nicely shown on FB and Twitter or found by Google.

Important are for example OG meta tags or [TWITTER meta tags](https://developer.twitter.com/en/docs/tweets/optimize-with-cards/overview/summary). They are basicly the same. Read more [here](https://css-tricks.com/essential-meta-tags-social-media/). You can test them at [iframely.com](http://debug.iframely.com).

Basic tags are following and you should place them to head:
- Note that Twitter is using attribute "name" instead of
attribute "property" which is defined in OG ... 
- btw OG was introduced by Facebook. Twitter can process it as well, but SEO optimizers will report an error when Twitter's tags are missing.

```html

<!DOCTYPE html>
[...]
7 0
4 followers
Viewed: 274 932 times
Version: 2.0
Category: Tutorials
Written by: rackycz
Last updated by: rackycz
Created on: Sep 19, 2019
Last updated: a year ago
Update Article

Revisions

View all history