<?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>DEV Community: relativelyrehan</title>
    <description>The latest articles on DEV Community by relativelyrehan (@relativelyrehan).</description>
    <link>https://dev.to/relativelyrehan</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%2F474547%2Fafc2c1c3-f70c-4eb7-896a-95ee49d86cf0.jpeg</url>
      <title>DEV Community: relativelyrehan</title>
      <link>https://dev.to/relativelyrehan</link>
    </image>
    <atom:link rel="self" type="application/rss+xml" href="https://dev.to/feed/relativelyrehan"/>
    <language>en</language>
    <item>
      <title>What is Structured Data for Advanced SEO?</title>
      <dc:creator>relativelyrehan</dc:creator>
      <pubDate>Sun, 08 Aug 2021 18:07:21 +0000</pubDate>
      <link>https://dev.to/xenoxdev/what-is-structured-data-for-advanced-seo-45e7</link>
      <guid>https://dev.to/xenoxdev/what-is-structured-data-for-advanced-seo-45e7</guid>
      <description>&lt;p&gt;Have you ever searched for some product online and get a result like this from the google? Do you also want your search results to come up with all this information? This can all be achieved using Structured Data.&lt;/p&gt;

&lt;p&gt;&lt;a href="https://res.cloudinary.com/practicaldev/image/fetch/s--BRIrMqsN--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/4ln4omhz516ip1tl0xgo.png" class="article-body-image-wrapper"&gt;&lt;img src="https://res.cloudinary.com/practicaldev/image/fetch/s--BRIrMqsN--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/4ln4omhz516ip1tl0xgo.png" alt="Screenshot-2021-07-16-at-4.21.40-PM"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;Structured data is, giving important information about your website to help search engines show your results at the top with all the important information you want to convey to your customers. This might include the price of your product, discounts, reviews, ratings, etc.&lt;/p&gt;

&lt;blockquote&gt;
&lt;p&gt;You can help us by providing explicit clues about the meaning of a page to Google by including structured data on the page. Structured data is a standardised format for providing information about a page and classifying the page content; for example, on a recipe page, what are the ingredients, the cooking time and temperature, the calories, and so on.&lt;/p&gt;
&lt;/blockquote&gt;

&lt;ul&gt;
&lt;li&gt;Google&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;Here is an example of structured data for a product from our platform &lt;a href="https://prototion.com/"&gt;https://prototion.com/&lt;/a&gt;&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;script type="application/ld+json"&amp;gt;{
  "@context": "https://schema.org/",
  "@type": "Product",
  "name": "Notion Library Template",
  "author" : {
    "@type" : "Person",
    "name" : "Patrick"
  },
  "image": "https://someimageur.png",
  "description": "Use this template to plan all your content in one place, including the channel it is posted on, the type of content it is (photo, video)",
  "aggregateRating": {
    "@type": "AggregateRating",
    "ratingValue": "5",
    "reviewCount": 38,
    "bestRating": "5",
    "worstRating": "5"
  }
}&amp;lt;/script&amp;gt;

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

&lt;/div&gt;



&lt;p&gt;JSON-LD is a format  to create a unified structured data vocabulary for the web. If you want to read more about JSON-LD, then read this &lt;a href="https://json-ld.org/"&gt;https://json-ld.org/&lt;/a&gt;. But I want to focus here on how you can use it in your projects to use SEO for maximum traction.&lt;/p&gt;

&lt;p&gt;Let us now break down what is happening in this script tag. First, we define the format for content and type. The type may be product, blog, etc. Then we are provided with more information such as name, image, etc. Then we move to provide ratings.  We can also provide additional information depending upon the use case. Here is an amazing tool to generate all sorts of json-ld for free. &lt;a href="https://jsonld.com/"&gt;JSONLD&lt;/a&gt;.&lt;/p&gt;

&lt;p&gt;When all set and done, this is the end result. You can test your json-ld before going live using this tool provided by google.&lt;/p&gt;

&lt;p&gt;&lt;a href="https://res.cloudinary.com/practicaldev/image/fetch/s--NeuJC2lP--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/wd2mt21l9bwxq8aa4d49.png" class="article-body-image-wrapper"&gt;&lt;img src="https://res.cloudinary.com/practicaldev/image/fetch/s--NeuJC2lP--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/wd2mt21l9bwxq8aa4d49.png" alt="Screenshot-2021-07-16-at-4.55.43-PM"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;That's it folks. I hope you will now implement the structure data in your projects and make it to the top in the SEO game.&lt;/p&gt;

&lt;p&gt;&lt;a href="https://twitter.com/relativelyrehan"&gt;@relativelyrehan&lt;/a&gt;&lt;/p&gt;

</description>
      <category>seo</category>
      <category>watercooler</category>
    </item>
    <item>
      <title>CSS Tips and Tricks #01</title>
      <dc:creator>relativelyrehan</dc:creator>
      <pubDate>Tue, 26 Jan 2021 11:22:11 +0000</pubDate>
      <link>https://dev.to/xenoxdev/css-tips-and-tricks-4j7e</link>
      <guid>https://dev.to/xenoxdev/css-tips-and-tricks-4j7e</guid>
      <description>&lt;p&gt;For the last couple of months, we at Skynox Tech's Twitter account, sharing a series of tweets known as #CSStricks. We have shared a lot of tricks that otherwise one could not find in online tutorials. Today we decided to compile all those tips and tricks under one hood so that you can find all those in a single place. These tweets will not only improve your CSS game but also helps you save a ton of codes line and help your own touch to your projects.&lt;/p&gt;

&lt;p&gt;So here are the tips and tricks of CSS:-&lt;/p&gt;

&lt;h3&gt;
  
  
  &lt;strong&gt;1. Smooth Scrolling&lt;/strong&gt;
&lt;/h3&gt;

&lt;p&gt;When you visit some websites and try to go to different sections, it scrolls smoothly to that section. It is not some top tier coding, but just one line in your CSS can help you achieve it.&lt;/p&gt;

&lt;p&gt;&lt;iframe class="tweet-embed" id="tweet-1326822054302261248-927" src="https://platform.twitter.com/embed/Tweet.html?id=1326822054302261248"&gt;
&lt;/iframe&gt;

  // Detect dark theme
  var iframe = document.getElementById('tweet-1326822054302261248-927');
  if (document.body.className.includes('dark-theme')) {
    iframe.src = "https://platform.twitter.com/embed/Tweet.html?id=1326822054302261248&amp;amp;theme=dark"
  }



&lt;/p&gt;

&lt;h3&gt;
  
  
  &lt;strong&gt;2. Truncate text using pure CSS&lt;/strong&gt;
&lt;/h3&gt;

&lt;p&gt;Sometimes the text is not consistent in cards and makes them look chaotic. Use this trick to limit the text on cards using just CSS.&lt;/p&gt;

&lt;p&gt;&lt;iframe class="tweet-embed" id="tweet-1326404316953972736-832" src="https://platform.twitter.com/embed/Tweet.html?id=1326404316953972736"&gt;
&lt;/iframe&gt;

  // Detect dark theme
  var iframe = document.getElementById('tweet-1326404316953972736-832');
  if (document.body.className.includes('dark-theme')) {
    iframe.src = "https://platform.twitter.com/embed/Tweet.html?id=1326404316953972736&amp;amp;theme=dark"
  }



&lt;/p&gt;

&lt;h3&gt;
  
  
  &lt;strong&gt;3. Input Caret Color&lt;/strong&gt;
&lt;/h3&gt;

&lt;p&gt;Want to give a little personal touch to your site. Use this css trick to change the color of the input field-caret to give it a custom color of your liking.&lt;/p&gt;

&lt;p&gt;&lt;iframe class="tweet-embed" id="tweet-1333727633482391552-247" src="https://platform.twitter.com/embed/Tweet.html?id=1333727633482391552"&gt;
&lt;/iframe&gt;

  // Detect dark theme
  var iframe = document.getElementById('tweet-1333727633482391552-247');
  if (document.body.className.includes('dark-theme')) {
    iframe.src = "https://platform.twitter.com/embed/Tweet.html?id=1333727633482391552&amp;amp;theme=dark"
  }



&lt;/p&gt;

&lt;h3&gt;
  
  
  &lt;strong&gt;4. Drop Shadow and Box Shadow&lt;/strong&gt;
&lt;/h3&gt;

&lt;p&gt;Do you know that you can use "Drop shadow" for the transparent images?&lt;br&gt;
It will give a much better shadow effect. &lt;/p&gt;

&lt;p&gt;&lt;iframe class="tweet-embed" id="tweet-1336581473302941696-70" src="https://platform.twitter.com/embed/Tweet.html?id=1336581473302941696"&gt;
&lt;/iframe&gt;

  // Detect dark theme
  var iframe = document.getElementById('tweet-1336581473302941696-70');
  if (document.body.className.includes('dark-theme')) {
    iframe.src = "https://platform.twitter.com/embed/Tweet.html?id=1336581473302941696&amp;amp;theme=dark"
  }



&lt;/p&gt;

&lt;h3&gt;
  
  
  &lt;strong&gt;5. Drop Cap Letter&lt;/strong&gt;
&lt;/h3&gt;

&lt;p&gt;You might have seen some blogs with the first letter being huge and the text is wrapped around it. That can be achieved with this simple trick on your text block.&lt;/p&gt;

&lt;p&gt;&lt;iframe class="tweet-embed" id="tweet-1339873196288454657-231" src="https://platform.twitter.com/embed/Tweet.html?id=1339873196288454657"&gt;
&lt;/iframe&gt;

  // Detect dark theme
  var iframe = document.getElementById('tweet-1339873196288454657-231');
  if (document.body.className.includes('dark-theme')) {
    iframe.src = "https://platform.twitter.com/embed/Tweet.html?id=1339873196288454657&amp;amp;theme=dark"
  }



&lt;/p&gt;

&lt;h3&gt;
  
  
  &lt;strong&gt;6. Center that Div&lt;/strong&gt;
&lt;/h3&gt;

&lt;p&gt;Centering your div element can be daunting sometimes, but not when you have this trick in your toolbox. You can center any div with just a couple of lines of CSS.&lt;/p&gt;

&lt;p&gt;&lt;iframe class="tweet-embed" id="tweet-1341675772147363841-520" src="https://platform.twitter.com/embed/Tweet.html?id=1341675772147363841"&gt;
&lt;/iframe&gt;

  // Detect dark theme
  var iframe = document.getElementById('tweet-1341675772147363841-520');
  if (document.body.className.includes('dark-theme')) {
    iframe.src = "https://platform.twitter.com/embed/Tweet.html?id=1341675772147363841&amp;amp;theme=dark"
  }



&lt;/p&gt;

&lt;h3&gt;
  
  
  &lt;strong&gt;7. No value, No problem&lt;/strong&gt;
&lt;/h3&gt;

&lt;p&gt;Display links when the &lt;a&gt; element has no text value but the href attribute has a link. Pretty neat, right?&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;&lt;iframe class="tweet-embed" id="tweet-1346033700623024128-715" src="https://platform.twitter.com/embed/Tweet.html?id=1346033700623024128"&gt;
&lt;/iframe&gt;

  // Detect dark theme
  var iframe = document.getElementById('tweet-1346033700623024128-715');
  if (document.body.className.includes('dark-theme')) {
    iframe.src = "https://platform.twitter.com/embed/Tweet.html?id=1346033700623024128&amp;amp;theme=dark"
  }



&lt;/p&gt;

&lt;h3&gt;
  
  
  &lt;strong&gt;8. Inherit box sizing&lt;/strong&gt;
&lt;/h3&gt;

&lt;p&gt;Let "box-sizing" be inherited from HTML. This makes it easier to change "box-sizing in plugins" or other components that leverage other behavior. &lt;/p&gt;

&lt;p&gt;&lt;iframe class="tweet-embed" id="tweet-1346411262582910977-222" src="https://platform.twitter.com/embed/Tweet.html?id=1346411262582910977"&gt;
&lt;/iframe&gt;

  // Detect dark theme
  var iframe = document.getElementById('tweet-1346411262582910977-222');
  if (document.body.className.includes('dark-theme')) {
    iframe.src = "https://platform.twitter.com/embed/Tweet.html?id=1346411262582910977&amp;amp;theme=dark"
  }



&lt;/p&gt;

&lt;h2&gt;
  
  
  Bonus tips:-
&lt;/h2&gt;

&lt;h3&gt;
  
  
  ** Bonus 1: Better User Experience **
&lt;/h3&gt;

&lt;p&gt;With the modern web technologies enhancements, one of the key focus points is user experience. Even if your website has the best designs but poor user experience, you will not be able to retain them. This is a cool user experience trick to mute videos on autoplay and let the user decide if they want to hear it.&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%2Fdev-to-uploads.s3.amazonaws.com%2Fi%2Fjk4kqy3xl1ow31sau19g.png" 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%2Fdev-to-uploads.s3.amazonaws.com%2Fi%2Fjk4kqy3xl1ow31sau19g.png" alt="autoplay"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;h3&gt;
  
  
  ** Bonus 2: Selection pseudo class **
&lt;/h3&gt;

&lt;p&gt;Most of the time when you visit any site and try to copy some text, it is just the blue color selection with white text. Use selection pseudo-class to give a personal touch to text selection on your websites. This will give them a personal touch and make your site stand out! &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%2Fdev-to-uploads.s3.amazonaws.com%2Fi%2Fekanu56b52mlzxmdw8wb.png" 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%2Fdev-to-uploads.s3.amazonaws.com%2Fi%2Fekanu56b52mlzxmdw8wb.png" alt="selection"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;That's it, folks!&lt;br&gt;
These are the all tricks I have to share for now. If you want to see more such content and tips and tricks of other web technologies like react, ES6, etc., do follow us on Twitter at &lt;a href="https://twitter.com/XenoxDev" rel="noopener noreferrer"&gt;@XenoxDev&lt;/a&gt;. We share a lot of cool content and resources to learn web development so make sure to give a follow. &lt;/p&gt;

&lt;p&gt;Until then 👋👋 &lt;/p&gt;

</description>
      <category>watercooler</category>
      <category>css</category>
      <category>beginners</category>
      <category>webdev</category>
    </item>
  </channel>
</rss>
