<?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:  Bhagirath Bhatti</title>
    <description>The latest articles on Forem by  Bhagirath Bhatti (@bhagirath1312).</description>
    <link>https://forem.com/bhagirath1312</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%2F527886%2Fbbde0b8d-5b86-46a8-b2e3-f81794f9114e.jpg</url>
      <title>Forem:  Bhagirath Bhatti</title>
      <link>https://forem.com/bhagirath1312</link>
    </image>
    <atom:link rel="self" type="application/rss+xml" href="https://forem.com/feed/bhagirath1312"/>
    <language>en</language>
    <item>
      <title>5 HTML Tricks Nobody Tells You 😎</title>
      <dc:creator> Bhagirath Bhatti</dc:creator>
      <pubDate>Wed, 23 Jun 2021 07:14:37 +0000</pubDate>
      <link>https://forem.com/bhagirath1312/5-html-tricks-nobody-tells-you-9fj</link>
      <guid>https://forem.com/bhagirath1312/5-html-tricks-nobody-tells-you-9fj</guid>
      <description>&lt;p&gt;The 5 HTML tricks nobody is talking about and if you like please share and like my article 😊.&lt;/p&gt;

&lt;p&gt;So let's go 😎.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;#1 Lazy loading image&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;👉 Lazy loading prevents the loading of images that are not really needed on the screen immediately. as you scroll down or closer to the image, the image begins to load.&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;img src="image.png" loading="lazy" width="100" height="100"/&amp;gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;&lt;strong&gt;#2 Downloading files&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;👉 They will download the specified file and with the name provided.&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;a href="file.pdf" download="pdf-file"&amp;gt;Download&amp;lt;/a&amp;gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;&lt;strong&gt;#3 Picture tag&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;👉 Using the  tag which allows you to add multiple images fitting different widths instead of having a single one scale up &amp;amp; down.&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;picture&amp;gt;
      &amp;lt;source media="(min-width:700px)" srcset="image1.png"/&amp;gt;
      &amp;lt;source media="(min-width:400px)" srcset="image2.png"/&amp;gt;
      &amp;lt;img src="image.png" alt="image" style="width:autox"/&amp;gt;
&amp;lt;/picture&amp;gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;&lt;strong&gt;#4 Hide elements&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;👉 Despite putting the presentation in the HTML, which is bad, this can sometimes turn out useful.&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;div hidden="hidden"&amp;gt;
   &amp;lt;p&amp;gt;Hello World!&amp;lt;/p&amp;gt;
&amp;lt;/div&amp;gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;&lt;strong&gt;#5 Input suggestions&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;👉 Use this input hack to get useful and relevant suggestions when you are trying to search for something really helpful.&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;label for="country"&amp;gt;Choose your country from the list&amp;lt;/label&amp;gt;
&amp;lt;input list="countries" name="country" id="country"/&amp;gt;

&amp;lt;datalist id="countries"&amp;gt;
    &amp;lt;option value="India"&amp;gt;
    &amp;lt;option value="Germany"&amp;gt;
    &amp;lt;option value="UK"&amp;gt;
    &amp;lt;option value="USA"&amp;gt;
    &amp;lt;option value="Japan"&amp;gt;
    &amp;lt;option value="Australia"&amp;gt;
&amp;lt;/datalist&amp;gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



</description>
      <category>html</category>
      <category>webdev</category>
      <category>coding</category>
    </item>
  </channel>
</rss>
