<?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: Rajeev Kumar</title>
    <description>The latest articles on DEV Community by Rajeev Kumar (@be_rajeevkumar).</description>
    <link>https://dev.to/be_rajeevkumar</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%2F1986477%2F5d474b44-3637-4887-b279-2b1eab7620f8.jpg</url>
      <title>DEV Community: Rajeev Kumar</title>
      <link>https://dev.to/be_rajeevkumar</link>
    </image>
    <atom:link rel="self" type="application/rss+xml" href="https://dev.to/feed/be_rajeevkumar"/>
    <language>en</language>
    <item>
      <title>How to Set Favicons on Your Websites</title>
      <dc:creator>Rajeev Kumar</dc:creator>
      <pubDate>Sat, 14 Sep 2024 05:26:50 +0000</pubDate>
      <link>https://dev.to/be_rajeevkumar/how-to-set-favicons-on-your-websites-2e91</link>
      <guid>https://dev.to/be_rajeevkumar/how-to-set-favicons-on-your-websites-2e91</guid>
      <description>&lt;p&gt;Have you ever properly added favicons to your web projects? They may be small, but their impact on branding and user experience is huge. In this blog, we'll learn "How to set a favicon on your website".&lt;/p&gt;

&lt;h3&gt;
  
  
  What is Favicon &amp;amp; Why is it important to add to the project?
&lt;/h3&gt;

&lt;p&gt;In web design, a favicon, or "favourite icon," is a small, square image that visually represents a website. It benefits the project in terms of Brand Recognition, Enhanced User Experience, Professionalism, Increased Website Visibility, Consistency Across Devices, Improved SEO, etc.&lt;/p&gt;

&lt;h3&gt;
  
  
  Steps to Adding a Favicon to a Website:
&lt;/h3&gt;

&lt;ol&gt;
&lt;li&gt;
&lt;strong&gt;Prepare Favicon Images:&lt;/strong&gt;

&lt;ul&gt;
&lt;li&gt;Take your website's logo and create four versions of it in different sizes: 64x64, 180x180, 192x192, and 512x512 pixels. Save these images in a suitable directory within your project folder.&lt;/li&gt;
&lt;/ul&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;p&gt;&lt;strong&gt;Link Favicon in HTML:&lt;/strong&gt;&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;Inside the &lt;code&gt;&amp;lt;head&amp;gt;&lt;/code&gt; section of your HTML document, add the following &lt;code&gt;&amp;lt;link&amp;gt;&lt;/code&gt; tags to attach the favicon images:
&lt;/li&gt;
&lt;/ul&gt;
&lt;pre class="highlight html"&gt;&lt;code&gt;&lt;span class="nt"&gt;&amp;lt;link&lt;/span&gt; &lt;span class="na"&gt;rel=&lt;/span&gt;&lt;span class="s"&gt;"icon"&lt;/span&gt; &lt;span class="na"&gt;href=&lt;/span&gt;&lt;span class="s"&gt;"images/favicons/favicon-64.png"&lt;/span&gt; &lt;span class="nt"&gt;/&amp;gt;&lt;/span&gt;
&lt;span class="nt"&gt;&amp;lt;link&lt;/span&gt; &lt;span class="na"&gt;rel=&lt;/span&gt;&lt;span class="s"&gt;"apple-touch-icon"&lt;/span&gt; &lt;span class="na"&gt;href=&lt;/span&gt;&lt;span class="s"&gt;"images/favicons/apple-touch-icon.png"&lt;/span&gt; &lt;span class="nt"&gt;/&amp;gt;&lt;/span&gt;
&lt;span class="nt"&gt;&amp;lt;link&lt;/span&gt; &lt;span class="na"&gt;rel=&lt;/span&gt;&lt;span class="s"&gt;"manifest"&lt;/span&gt; &lt;span class="na"&gt;href=&lt;/span&gt;&lt;span class="s"&gt;"manifest.webmanifest"&lt;/span&gt; &lt;span class="nt"&gt;/&amp;gt;&lt;/span&gt;

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


&lt;blockquote&gt;
&lt;p&gt;Replace "images/favicons/favicon-64.png" with the appropriate file path for your favicon images.&lt;/p&gt;
&lt;/blockquote&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;p&gt;&lt;strong&gt;Create manifest.webmanifest File:&lt;/strong&gt;&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;Create a new file named &lt;code&gt;manifest.webmanifest&lt;/code&gt; in your project directory.&lt;/li&gt;
&lt;li&gt;Inside the &lt;code&gt;manifest.webmanifest&lt;/code&gt; file, add the following JSON structure:
&lt;/li&gt;
&lt;/ul&gt;
&lt;pre class="highlight json"&gt;&lt;code&gt;&lt;span class="p"&gt;{&lt;/span&gt;&lt;span class="w"&gt;
  &lt;/span&gt;&lt;span class="nl"&gt;"icons"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="p"&gt;[&lt;/span&gt;&lt;span class="w"&gt;
    &lt;/span&gt;&lt;span class="p"&gt;{&lt;/span&gt;&lt;span class="w"&gt;
      &lt;/span&gt;&lt;span class="nl"&gt;"src"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="s2"&gt;"images/favicons/favicon-192.png"&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;&lt;span class="w"&gt;
      &lt;/span&gt;&lt;span class="nl"&gt;"type"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="s2"&gt;"image/png"&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;&lt;span class="w"&gt;
      &lt;/span&gt;&lt;span class="nl"&gt;"sizes"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="s2"&gt;"192x192"&lt;/span&gt;&lt;span class="w"&gt;
    &lt;/span&gt;&lt;span class="p"&gt;},&lt;/span&gt;&lt;span class="w"&gt;
    &lt;/span&gt;&lt;span class="p"&gt;{&lt;/span&gt;&lt;span class="w"&gt;
      &lt;/span&gt;&lt;span class="nl"&gt;"src"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="s2"&gt;"images/favicons/favicon-512.png"&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;&lt;span class="w"&gt;
      &lt;/span&gt;&lt;span class="nl"&gt;"type"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="s2"&gt;"image/png"&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;&lt;span class="w"&gt;
      &lt;/span&gt;&lt;span class="nl"&gt;"sizes"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="s2"&gt;"512x512"&lt;/span&gt;&lt;span class="w"&gt;
    &lt;/span&gt;&lt;span class="p"&gt;}&lt;/span&gt;&lt;span class="w"&gt;
  &lt;/span&gt;&lt;span class="p"&gt;]&lt;/span&gt;&lt;span class="w"&gt;
&lt;/span&gt;&lt;span class="p"&gt;}&lt;/span&gt;&lt;span class="w"&gt;

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


&lt;blockquote&gt;
&lt;p&gt;Ensure that the "src" paths match the location of your favicon images.&lt;/p&gt;
&lt;/blockquote&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;p&gt;&lt;strong&gt;Favicon Deployment:&lt;/strong&gt;&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;Once all the necessary files and links are in place, deploy your website to make the favicon visible to users.&lt;/li&gt;
&lt;/ul&gt;
&lt;/li&gt;
&lt;/ol&gt;

&lt;h3&gt;
  
  
  Additional Notes:
&lt;/h3&gt;

&lt;ul&gt;
&lt;li&gt;The favicon images should be appropriately sized to ensure optimal display on various devices and platforms.&lt;/li&gt;
&lt;li&gt;The &lt;code&gt;apple-touch-icon&lt;/code&gt; link is used for Apple devices and should typically be a square image in PNG format.&lt;/li&gt;
&lt;li&gt;The &lt;code&gt;manifest.webmanifest&lt;/code&gt; file provides metadata about the web application, including icons for different screen sizes and platforms.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;Following these steps, you can successfully add a favicon to your website, enhancing its visual appeal and branding.&lt;/p&gt;

</description>
      <category>beginners</category>
      <category>webdev</category>
      <category>programming</category>
      <category>tutorial</category>
    </item>
    <item>
      <title>How I Built Huddle Landing Page with Curved Sections</title>
      <dc:creator>Rajeev Kumar</dc:creator>
      <pubDate>Fri, 06 Sep 2024 00:04:00 +0000</pubDate>
      <link>https://dev.to/be_rajeevkumar/how-i-built-huddle-landing-page-with-curved-sections-1lnh</link>
      <guid>https://dev.to/be_rajeevkumar/how-i-built-huddle-landing-page-with-curved-sections-1lnh</guid>
      <description>&lt;p&gt;Hello, Dev Community!&lt;/p&gt;

&lt;p&gt;I’m excited to share my solution to this project as part of my journey to regain confidence in front-end development. There was a time when I lost touch with the basics, and I realized I needed to revisit simple practices. That’s when I discovered the &lt;a href="https://www.frontendmentor.io/" rel="noopener noreferrer"&gt;Frontend Mentor&lt;/a&gt; platform. I downloaded the starter files for the &lt;a href="https://www.frontendmentor.io/challenges/huddle-landing-page-with-curved-sections-5ca5ecd01e82137ec91a50f2" rel="noopener noreferrer"&gt;Huddle landing page with curved sections&lt;/a&gt; project, which is a junior-level challenge, perfect for brushing up on my HTML and CSS skills.&lt;/p&gt;

&lt;h2&gt;
  
  
  The Build Process of the Project
&lt;/h2&gt;

&lt;p&gt;As per the instructions, I downloaded the starter files, and here's how I approach this project:&lt;/p&gt;

&lt;h3&gt;
  
  
  Setting Up the Project:
&lt;/h3&gt;

&lt;p&gt;When starting the project, I wanted to make sure the code was organized and easy to maintain, especially for future updates. To achieve that, I split the CSS into three different files. One for &lt;code&gt;general reusable components&lt;/code&gt;, one dedicated to the &lt;code&gt;main styling&lt;/code&gt;, and another just for &lt;code&gt;media queries&lt;/code&gt;. This setup not only made the code more readable but also kept everything modular, which is super helpful if I need to make changes later on.&lt;/p&gt;

&lt;h3&gt;
  
  
  Building webpage &amp;amp; styling:
&lt;/h3&gt;

&lt;p&gt;While building the webpage, my focus was on creating a &lt;strong&gt;component-driven layout&lt;/strong&gt;. To keep things modular and clean, I broke the page down into separate &lt;code&gt;&amp;lt;section&amp;gt;&lt;/code&gt; elements for each part of the design. I styled these sections using my &lt;strong&gt;general reusable components&lt;/strong&gt; and &lt;strong&gt;main styling&lt;/strong&gt; files, making sure everything was consistent and easy to maintain.&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fuwem434xeq3pdlsm7z8o.gif" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fuwem434xeq3pdlsm7z8o.gif" alt="Desktop Preview" width="472" height="266"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;h3&gt;
  
  
  Making the Page Responsive:
&lt;/h3&gt;

&lt;p&gt;To keep things organized, I created a separate &lt;code&gt;queries.css&lt;/code&gt; file just for the responsive code, making sure nothing got too cluttered. While working on responsiveness, I learned about new HTML tags like &lt;code&gt;&amp;lt;picture&amp;gt;&lt;/code&gt; and got a better understanding of &lt;strong&gt;fluid layouts&lt;/strong&gt;, &lt;strong&gt;breakpoints&lt;/strong&gt;, and the &lt;strong&gt;max-width&lt;/strong&gt; property.&lt;/p&gt;

&lt;p&gt;One habit I’ve developed is setting the default &lt;strong&gt;font size to 62.5% (10px)&lt;/strong&gt; at the start of each project. This makes it easier to work with &lt;code&gt;rem&lt;/code&gt; units and helps ensure a fluid layout across all devices.&lt;/p&gt;

&lt;h2&gt;
  
  
  Testing and Optimization:
&lt;/h2&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2F9v3ft7babc580gd2fbh5.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2F9v3ft7babc580gd2fbh5.png" alt="Lighthouse Testing" width="475" height="165"&gt;&lt;/a&gt;&lt;br&gt;
After completing the front-end design, I started testing the site using tools like &lt;a href="https://caniuse.com/" rel="noopener noreferrer"&gt;CanIuse&lt;/a&gt; and &lt;a href="https://developer.chrome.com/docs/lighthouse" rel="noopener noreferrer"&gt;Google Lighthouse&lt;/a&gt;. I focused on four key areas: &lt;code&gt;Performance&lt;/code&gt;, &lt;code&gt;Accessibility&lt;/code&gt;, &lt;code&gt;Best Practices&lt;/code&gt;, and &lt;code&gt;SEO&lt;/code&gt;.&lt;br&gt;
For accessibility, I made sure to check the contrast ratio and ensure all images had proper &lt;code&gt;alt&lt;/code&gt; attributes. For performance, my goal was to optimize load times, while best practices were implemented using the BEM methodology for clean, maintainable HTML. To improve SEO, I included essential meta tags and followed best practices to help the page rank well.&lt;br&gt;
On the &lt;code&gt;optimization side&lt;/code&gt;, I reduced the &lt;strong&gt;intrinsic size&lt;/strong&gt; of images so that web document size was reduced from 2MB down to just 8KB — to ensure they load quickly and efficiently.&lt;/p&gt;

&lt;h2&gt;
  
  
  Launch and Maintenance of the project:
&lt;/h2&gt;

&lt;p&gt;The project is now open source and available on GitHub. You can check it out &lt;a href="https://github.com/beRajeevKumar/Huddle_Curve_Page.git" rel="noopener noreferrer"&gt;here&lt;/a&gt; and view the live version on Netlify &lt;a href="https://huddlecurve-rajeev.netlify.app/" rel="noopener noreferrer"&gt;here&lt;/a&gt;. If you spot anything that could be improved, feel free to make changes and send a pull request—I'd love to collaborate and push those updates!&lt;/p&gt;

&lt;h2&gt;
  
  
  Conclusion
&lt;/h2&gt;

&lt;p&gt;After completing this project, I’ve gained confidence in building landing pages and making them responsive across different devices. I also got comfortable testing with dev tools and planning the process of deploying to Netlify.&lt;br&gt;
If you find something insightful, feel free to drop a comment and let’s figure out something interesting together! &lt;br&gt;
You can also connect with me on &lt;a href="https://www.linkedin.com/in/berajeevkumar/" rel="noopener noreferrer"&gt;LinkedIn&lt;/a&gt;, &lt;a href="https://x.com/be_rajeevkumar" rel="noopener noreferrer"&gt;Twitter(X)&lt;/a&gt;, and &lt;a href="https://www.threads.net/@rajeevkumar.work" rel="noopener noreferrer"&gt;Threads&lt;/a&gt;.&lt;/p&gt;

&lt;p&gt;This is my first blog so I took help from the AI Models to avoid grammatical mistakes and share my story with words to make it readable to the readers but in future, I will share and contribute my story and values within my own words. &lt;/p&gt;

</description>
      <category>webdev</category>
      <category>beginners</category>
      <category>programming</category>
      <category>career</category>
    </item>
  </channel>
</rss>
