<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom" xmlns:dc="http://purl.org/dc/elements/1.1/">
  <channel>
    <title>Forem: Jassmin </title>
    <description>The latest articles on Forem by Jassmin  (@jherr0905).</description>
    <link>https://forem.com/jherr0905</link>
    <image>
      <url>https://media2.dev.to/dynamic/image/width=90,height=90,fit=cover,gravity=auto,format=auto/https:%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Fuser%2Fprofile_image%2F724369%2F4d9dd3ec-5445-456c-b452-2691db26102c.jpeg</url>
      <title>Forem: Jassmin </title>
      <link>https://forem.com/jherr0905</link>
    </image>
    <atom:link rel="self" type="application/rss+xml" href="https://forem.com/feed/jherr0905"/>
    <language>en</language>
    <item>
      <title>How to improve your website's preview cards on sites like LinkedIn. </title>
      <dc:creator>Jassmin </dc:creator>
      <pubDate>Tue, 12 Oct 2021 20:36:35 +0000</pubDate>
      <link>https://forem.com/jherr0905/how-to-improve-your-websites-preview-cards-on-sites-like-linkedin-2ce6</link>
      <guid>https://forem.com/jherr0905/how-to-improve-your-websites-preview-cards-on-sites-like-linkedin-2ce6</guid>
      <description>&lt;h3&gt;
  
  
  The Intro
&lt;/h3&gt;

&lt;p&gt;You may have noticed that when you host a personal project and share it on LinkedIn or on most social networks, it usually doesn't show a description, title, or an image. And it typically looks something like this..&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fres.cloudinary.com%2Fdlsacnkot%2Fimage%2Fupload%2Fv1634068752%2FScreen_Shot_2021-10-12_at_12.56.56_PM_kfsmuc.jpg" class="article-body-image-wrapper"&gt;&lt;img src="https://media.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fres.cloudinary.com%2Fdlsacnkot%2Fimage%2Fupload%2Fv1634068752%2FScreen_Shot_2021-10-12_at_12.56.56_PM_kfsmuc.jpg" alt="Alt text of image"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;This short tutorial will help you create preview cards for sites like LinkedIn so it can end up looking like this:&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fres.cloudinary.com%2Fdlsacnkot%2Fimage%2Fupload%2Fv1634070420%2FScreen_Shot_2021-10-12_at_12.15.14_PM_copy_1_copy_2_v11q2i.jpg" class="article-body-image-wrapper"&gt;&lt;img src="https://media.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fres.cloudinary.com%2Fdlsacnkot%2Fimage%2Fupload%2Fv1634070420%2FScreen_Shot_2021-10-12_at_12.15.14_PM_copy_1_copy_2_v11q2i.jpg" alt="Alt text of image"&gt;&lt;/a&gt;&lt;/p&gt;




&lt;h3&gt;
  
  
  The How-To
&lt;/h3&gt;

&lt;p&gt;Here are 2 steps and resources that helped me create my first LinkedIn preview cards:&lt;/p&gt;

&lt;ol&gt;
&lt;li&gt;LinkedIn looks at the &lt;code&gt;&amp;lt;meta&amp;gt;&lt;/code&gt; tags inside the HTML's &lt;code&gt;&amp;lt;head&amp;gt;&lt;/code&gt; tags but it also looks for the meta tags that are "Open Graph Protocol" type. Below are the tags you will need to add &lt;strong&gt;inside&lt;/strong&gt; the HTML &lt;code&gt;&amp;lt;head&amp;gt;&lt;/code&gt; tags. You can read more about the Open Graph Protocol:  &lt;a href="https://ogp.me/" rel="noopener noreferrer"&gt;here&lt;/a&gt; .
&lt;/li&gt;
&lt;/ol&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;
&amp;lt;meta property='og:title' content='My Title'/&amp;gt;
&amp;lt;meta property='og:image' content='URL to the image you want in the preview, LinkedIn recommends a 1.91:1 ratio (1200x627px)'/&amp;gt;
&amp;lt;meta property='og:description' content='This should be a very short description'/&amp;gt;

&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;2.After Step 1 is completed, utilize LinkedIn's Post Inspector to see how it looks. Here is the link to the Post Inspector : (&lt;a href="https://www.linkedin.com/post-inspector/" rel="noopener noreferrer"&gt;https://www.linkedin.com/post-inspector/&lt;/a&gt;)&lt;/p&gt;




&lt;h3&gt;
  
  
  An Example
&lt;/h3&gt;

&lt;p&gt;Here is what my code looks like:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;&amp;lt;!DOCTYPE html&amp;gt;
&amp;lt;html lang="en"&amp;gt;
&amp;lt;head&amp;gt;
    &amp;lt;link href="styles.css" rel="stylesheet"&amp;gt;
    &amp;lt;script src="script.js" async&amp;gt;&amp;lt;/script&amp;gt;
    &amp;lt;meta charset="UTF-8"&amp;gt;
    &amp;lt;meta http-equiv="X-UA-Compatible" content="IE=edge"&amp;gt;
    &amp;lt;meta name="viewport" content="width=device-width, initial-scale=1.0"&amp;gt;
    &amp;lt;link rel="preconnect" href="https://fonts.googleapis.com"&amp;gt;
&amp;lt;link rel="preconnect" href="https://fonts.gstatic.com" crossorigin&amp;gt;
&amp;lt;link href="https://fonts.googleapis.com/css2?family=Atma:wght@300&amp;amp;display=swap" rel="stylesheet"&amp;gt;
    &amp;lt;title&amp;gt;Kid's Halloween Memory Card Game&amp;lt;/title&amp;gt;
    &amp;lt;meta property='og:title' content='Kids Halloween Memory Card Game'/&amp;gt;
   &amp;lt;meta property='og:image' content='Assets/Images/preview3.png'/&amp;gt;
   &amp;lt;meta property='og:description' content='A fun Halloween themed Kids Memory Card Game. The game has animations and music which kids will enjoy!'/&amp;gt;
&amp;lt;/head&amp;gt;
&amp;lt;body&amp;gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;






&lt;h3&gt;
  
  
  The End
&lt;/h3&gt;

&lt;p&gt;I enjoy sharing my knowledge and I hope this will help you with your LinkedIn cards! 🎉 &lt;/p&gt;

</description>
      <category>webdev</category>
      <category>tutorial</category>
      <category>html</category>
      <category>beginners</category>
    </item>
  </channel>
</rss>
