Skip to content

Instantly share code, notes, and snippets.

@MichaelDimmitt
Last active March 21, 2021 15:21
Show Gist options
  • Save MichaelDimmitt/bf5367f5f5f993d2fd1db9597720ab59 to your computer and use it in GitHub Desktop.
Save MichaelDimmitt/bf5367f5f5f993d2fd1db9597720ab59 to your computer and use it in GitHub Desktop.

1) learned some new html today

Looking at youtube blog, https://youtube-eng.googleblog.com/2018/08/control-your-360-videos-with-youtube.html

ran into the following code:

<!--[if IE]>
  <script type="text/javascript" 
    src="https://www.blogger.com/static/v1/jsbin/1277698886-ieretrofit.js"
  ></script>
<![endif]-->

There is no way this possibly runs!

a quick google search later: https://css-tricks.com/how-to-create-an-ie-only-stylesheet

Oh, - so there are other uses for <!--, 🆒

My recent work has me doing a lot of IE support since the userbase contains that marketshare. However it is the last concern since it is such a small userbase.

Death to IE, but pretty cool to learn some new html.

2) learned blogger.com meta tags for social twitter and facebook

https://neilpatel.com/blog/open-graph-meta-tags

<meta content='Your twitter info here' property='twitter:title' />
<meta content='Your facebook info here' property='og:title' />

3) rel=canonical

<link href='https://youtube-eng.googleblog.com/2018/08/control-your-360-videos-with-youtube.html' rel='canonical' />

https://yoast.com/rel-canonical

4) rel=alternate

tell search engine, if someone is coming from a different language show different content. or if someone is coming from an rss+xml feed show different content 👍

<link rel="alternate" type="application/atom+xml" title="YouTube Engineering and Developers Blog - Atom" href="https://youtube-eng.googleblog.com/feeds/5087154068109238670/comments/default" />
<link rel="alternate" type="application/rss+xml" title="YouTube Engineering and Developers Blog - RSS" href="https://youtube-eng.googleblog.com/feeds/posts/default?alt=rss" />

https://www.contentkingapp.com/academy/link-rel

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment