<?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: Ajay Sharma</title>
    <description>The latest articles on DEV Community by Ajay Sharma (@ajaysharma12799).</description>
    <link>https://dev.to/ajaysharma12799</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%2F503207%2Fc3c729fb-663d-4180-94ef-dce7e3801430.jpeg</url>
      <title>DEV Community: Ajay Sharma</title>
      <link>https://dev.to/ajaysharma12799</link>
    </image>
    <atom:link rel="self" type="application/rss+xml" href="https://dev.to/feed/ajaysharma12799"/>
    <language>en</language>
    <item>
      <title>Destructuring in JavaScript</title>
      <dc:creator>Ajay Sharma</dc:creator>
      <pubDate>Sat, 22 Oct 2022 07:21:00 +0000</pubDate>
      <link>https://dev.to/ajaysharma12799/destructuring-in-javascript-4jo5</link>
      <guid>https://dev.to/ajaysharma12799/destructuring-in-javascript-4jo5</guid>
      <description>&lt;p&gt;&lt;iframe width="710" height="399" src="https://www.youtube.com/embed/Q4iuT6HkUnA"&gt;
&lt;/iframe&gt;
&lt;/p&gt;

</description>
    </item>
    <item>
      <title>How to Create Stopwatch Using HTML, CSS and JavaScript.</title>
      <dc:creator>Ajay Sharma</dc:creator>
      <pubDate>Thu, 02 Sep 2021 18:09:39 +0000</pubDate>
      <link>https://dev.to/ajaysharma12799/how-to-create-stopwatch-using-html-css-and-javascript-1c99</link>
      <guid>https://dev.to/ajaysharma12799/how-to-create-stopwatch-using-html-css-and-javascript-1c99</guid>
      <description>&lt;p&gt;Hello Everyone, In this Post We Will be Seeing How to Create Stopwatch Using HTML, CSS and JavaScript.&lt;/p&gt;

&lt;p&gt;Here is The Live Link of Page &lt;a href="https://stopwatch-using-js.netlify.app/"&gt;https://stopwatch-using-js.netlify.app/&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;Follow Me on LinkedIn &lt;a href="https://www.linkedin.com/in/ajaysharma12799/"&gt;https://www.linkedin.com/in/ajaysharma12799/&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;Follow Me on Github &lt;a href="https://www.github.com/ajaysharma12799/"&gt;https://www.github.com/ajaysharma12799/&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;Steps to Create :-&lt;/p&gt;

&lt;ol&gt;
&lt;li&gt;Choose Any Text Editor (VSCode Recommended).&lt;/li&gt;
&lt;li&gt;Create 3 Files in Current Project Directory, index.html, style.css and app.js.&lt;/li&gt;
&lt;li&gt;Use Below HTML, CSS and JS Code To Build Your Page.
&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;!DOCTYPE html&amp;gt;
&amp;lt;html lang="en"&amp;gt;
&amp;lt;head&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;title&amp;gt;Stopwatch&amp;lt;/title&amp;gt;
    &amp;lt;link rel="stylesheet" href="style.css"&amp;gt;
&amp;lt;/head&amp;gt;
&amp;lt;body&amp;gt;
    &amp;lt;div class="container"&amp;gt;
        &amp;lt;div class="watch"&amp;gt;
            &amp;lt;div class="hourDiv"&amp;gt;
                &amp;lt;h3 class="hour"&amp;gt;01&amp;lt;/h3&amp;gt;
                &amp;lt;p class="hourTitle"&amp;gt;Hour&amp;lt;/p&amp;gt;
            &amp;lt;/div&amp;gt;
            &amp;lt;div class="minuteDiv"&amp;gt;
                &amp;lt;h3 class="minute"&amp;gt;30&amp;lt;/h3&amp;gt;
                &amp;lt;p class="minuteTitle"&amp;gt;Min&amp;lt;/p&amp;gt;
            &amp;lt;/div&amp;gt;
            &amp;lt;div class="secondDiv"&amp;gt;
                &amp;lt;h3 class="second"&amp;gt;01&amp;lt;/h3&amp;gt;
                &amp;lt;p class="secondTitle"&amp;gt;Sec&amp;lt;/p&amp;gt;
            &amp;lt;/div&amp;gt;
            &amp;lt;div class="milliSecondDiv"&amp;gt;
                &amp;lt;h3 class="milliSecond"&amp;gt;99&amp;lt;/h3&amp;gt;
                &amp;lt;p class="milliSecondTitle"&amp;gt;Millis&amp;lt;/p&amp;gt;
            &amp;lt;/div&amp;gt;
        &amp;lt;/div&amp;gt;
        &amp;lt;div class="buttons"&amp;gt;
            &amp;lt;button class="start button"&amp;gt;Start&amp;lt;/button&amp;gt;
            &amp;lt;button class="pause button"&amp;gt;Pause&amp;lt;/button&amp;gt;
            &amp;lt;button class="stop button"&amp;gt;Reset&amp;lt;/button&amp;gt;
        &amp;lt;/div&amp;gt;
    &amp;lt;/div&amp;gt;
    &amp;lt;script src="./app.js"&amp;gt;&amp;lt;/script&amp;gt;
    &amp;lt;script&amp;gt;
        let bodyWidth = screen.width;
        if(bodyWidth === 250) {
            alert("Web App Not Compatiable Choose Device Above 300 Width Otherwise UI Design Will be Messy.");
        }
    &amp;lt;/script&amp;gt;
&amp;lt;/body&amp;gt;
&amp;lt;/html&amp;gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;





&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;@import url('https://fonts.googleapis.com/css2?family=Zen+Loop&amp;amp;display=swap');
:root {
    --mainColor1: #3DBE29;
    --mainColor2: #EDC126; 
}
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}
html {
    height: 100%;
    width: 100%;
}
body {
    font-family: 'Zen Loop', cursive;
    background-color: #CAD5E2;
    text-transform: uppercase;
    min-height: 100%;
    overflow: hidden;
}
.container {
    width: 60%;
    height: 100%;
    margin: 0 auto;
}
.watch {
    text-align: center;
    font-size: 5rem;
    font-weight: lighter;
    color: #fff;
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.hourDiv, 
.minuteDiv, 
.secondDiv, 
.milliSecondDiv {
    width: 20%;
    border-bottom-left-radius: 10px;
    border-bottom-right-radius: 10px;
}
.hour, 
.minute, 
.second, 
.milliSecond {
    padding: 5px;
    background-color: var(--mainColor1);
}
.hourTitle, 
.minuteTitle, 
.secondTitle, 
.milliSecondTitle {
    background-color: var(--mainColor2);
    font-size: 3rem;
    padding: 5px;
    font-weight: bold;
    border-bottom-left-radius: 10px;
    border-bottom-right-radius: 10px;
}
.button {
    border: none;
    border-radius: 10px;
    font-size: 3rem;
    padding: 10px;
    width: 180px;
    font-weight: bold;
    font-family: 'Zen Loop', cursive;
}
.start {
    margin-right: 5%;
    color: var(--mainColor1);
    transition: 0.5s ease-in-out;
}
.start:hover {
    background-color: var(--mainColor2);
    color: #fff;
}
.pause {
    transition: 0.5s ease-in-out;
}
.pause:hover {
    background-color: #E03B8B;
    color: #fff;
}
.stop {
    margin-left: 5%;
    color: var(--mainColor2);
    transition: 0.5s ease-in-out;
}
.stop:hover {
    background-color: var(--mainColor1);
    color: #fff;
}
.buttons {
    margin-top: 2%;
    margin-bottom: 2%;
    display: flex;
    justify-content: center;
    align-items: center;
}
@media screen and (max-width: 768px) {
    .container {
        width: 100%;
    }
    .watch {
        font-size: 2rem;
        display: flex;
        justify-content: space-between;
        align-items: center;
    }
    .hourTitle, 
    .minuteTitle, 
    .secondTitle, 
    .milliSecondTitle {
        font-size: 2rem;
    }
    .button {
        margin-top: 5%;
        margin-bottom: 5%;
        width: 50%;
    }
    .start, .stop {
        margin: 0;
    }
    .buttons {
        margin-top: 10%;
        display: flex;
        justify-content: center;
        align-items: center;
        flex-direction: column;
    }
}
@media screen and (max-width: 550px) {
    .watch {
        font-size: 2rem;
    }
    .hourTitle, 
    .minuteTitle, 
    .secondTitle, 
    .milliSecondTitle {
        font-size: 1.5rem;
    }
}
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;





&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;// Timer Field
let hourElement = document.querySelector(".hour");
let minuteElement = document.querySelector(".minute");
let secondElement = document.querySelector(".second");
let millisecondElement = document.querySelector(".milliSecond");

// Button Field
let startButton = document.querySelector(".start");
let pauseButton = document.querySelector(".pause");
let stopButton = document.querySelector(".stop");

// Counter Variable
let hour = 00;
let minute = 00;
let second = 00;
let millisecond = 00;
let interval;

window.onload = () =&amp;gt; clearFields();

startButton.onclick  = function() {
    clearInterval(interval); // If Some Error Happen and Interval is Setup, It Will Clear That Interval
    interval = setInterval(startTimer, 10); // 
};
pauseButton.onclick = function() { 
    clearInterval(interval); // On Clicking Pause Buttom We Will Clear Interval
};
stopButton.onclick = function() {
    clearInterval(interval); // Clear Interval
    clearFields(); // Clear Timer Fields
}
function startTimer() {
    millisecond++;
    if(millisecond &amp;lt; 9) {
        millisecondElement.innerText = "0" + millisecond;
    }
    if(millisecond &amp;gt; 99) {
        second++;
        secondElement.innerText = "0" + second;
        millisecond = 0;
        millisecondElement.innerText = "0" + millisecond;
    }
    if(second &amp;gt; 60) {
        minute++;
        minuteElement.innerText = "0" + minute;
        second = 0;
        secondElement.innerText = "0" + second;
    }

    if(millisecond &amp;gt; 9) {
        millisecondElement.innerText = millisecond;
    }
    if (second &amp;gt; 9){
        secondElement.innerText = second;
    }
    if (minute &amp;gt; 9){
        minuteElement.innerText = minute;
    }
    if(hour &amp;gt; 9) {
        hourElement.innerText = hour;
    }
}

function clearFields() {
    hourElement.innerText = "00";
    minuteElement.innerText = "00";
    secondElement.innerText = "00";
    millisecondElement.innerText = "00";
}
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



</description>
      <category>html</category>
      <category>css</category>
      <category>javascript</category>
      <category>webdev</category>
    </item>
    <item>
      <title>How to Create Background-Changer Using HTML, CSS and JavaScript.</title>
      <dc:creator>Ajay Sharma</dc:creator>
      <pubDate>Tue, 20 Jul 2021 16:36:32 +0000</pubDate>
      <link>https://dev.to/ajaysharma12799/how-to-create-background-changer-using-html-css-and-javascript-1fi7</link>
      <guid>https://dev.to/ajaysharma12799/how-to-create-background-changer-using-html-css-and-javascript-1fi7</guid>
      <description>&lt;p&gt;Hello Everyone, In this Post We Will be Seeing How to Create Background Changer Using HTML, CSS and JavaScript.&lt;/p&gt;

&lt;p&gt;Here is The Live Link of Page &lt;a href="https://bg-changer-js.netlify.app/"&gt;https://bg-changer-js.netlify.app/&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;Follow Me on LinkedIn &lt;a href="https://www.linkedin.com/in/ajaysharma12799/"&gt;https://www.linkedin.com/in/ajaysharma12799/&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;Follow Me on Github &lt;a href="https://www.github.com/ajaysharma12799/"&gt;https://www.github.com/ajaysharma12799/&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;Steps to Create :-&lt;/p&gt;

&lt;ol&gt;
&lt;li&gt;Choose Any Text Editor (VSCode Recommended).&lt;/li&gt;
&lt;li&gt;Create 3 Files in Current Project Directory, index.html, style.css and app.js.&lt;/li&gt;
&lt;li&gt;Use Below HTML, CSS and JS Code To Build Your Page.
&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;!DOCTYPE html&amp;gt;
&amp;lt;html lang="en"&amp;gt;
&amp;lt;head&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;title&amp;gt;Background Changer&amp;lt;/title&amp;gt;
    &amp;lt;link rel="stylesheet" href="style.css"&amp;gt;
&amp;lt;/head&amp;gt;
&amp;lt;body&amp;gt;
    &amp;lt;div id="container"&amp;gt;
        &amp;lt;div class="title"&amp;gt;
            Click To Change Background
        &amp;lt;/div&amp;gt;
    &amp;lt;/div&amp;gt;
    &amp;lt;script src="./app.js"&amp;gt;&amp;lt;/script&amp;gt;
&amp;lt;/body&amp;gt;
&amp;lt;/html&amp;gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;





&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}
#container {
    cursor: pointer;
    border: none;
    width: 50%;
    margin: 0 auto;
    margin-top: 50vh;
    background-color: #1B98F5;
    box-shadow: 0 0 20px #fff;
}
.title {
    color: #fff;
    font-size: 30px;
    font-weight: lighter;
    text-align: center;
    padding: 20px;
}
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;





&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;let containerElement = document.getElementById("container");

containerElement.addEventListener("click", changeColor);

function changeColor() {
    let random1 = Math.floor(Math.random() * 255 + 1);
    let random2 = Math.floor(Math.random() * 255 + 1);
    let random3 = Math.floor(Math.random() * 255 + 1);
    document.body.style.backgroundColor = `rgb(${random1}, ${random2}, ${random3})`;
}
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



</description>
      <category>html</category>
      <category>css</category>
      <category>javascript</category>
      <category>webdev</category>
    </item>
    <item>
      <title>JavaScript Array Methods.</title>
      <dc:creator>Ajay Sharma</dc:creator>
      <pubDate>Sat, 17 Jul 2021 06:38:13 +0000</pubDate>
      <link>https://dev.to/ajaysharma12799/javascript-array-methods-94e</link>
      <guid>https://dev.to/ajaysharma12799/javascript-array-methods-94e</guid>
      <description>&lt;p&gt;Hello Everyone&lt;br&gt;
In This Article We Will be Seeing Different Array Methods.&lt;/p&gt;

&lt;p&gt;Follow Me on LinkedIn &lt;a href="https://www.linkedin.com/in/ajaysharma12799/"&gt;https://www.linkedin.com/in/ajaysharma12799/&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;Follow Me on Github &lt;a href="https://www.github.com/ajaysharma12799/"&gt;https://www.github.com/ajaysharma12799/&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;&lt;iframe width="710" height="399" src="https://www.youtube.com/embed/IK63MkBL3sU"&gt;
&lt;/iframe&gt;
&lt;/p&gt;

&lt;p&gt;Create Array Either Using Square Braces or Using new Array() Class&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;let arr = [1,2,3,4,5];
let arr = new Array(length or element);
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;h2&gt;
  
  
  Methods
&lt;/h2&gt;

&lt;h3&gt;
  
  
  1. push(element)
&lt;/h3&gt;



&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;arr.push(10); // Insert Element at Last of Array
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;h3&gt;
  
  
  2. pop()
&lt;/h3&gt;



&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;arr.pop(); // Remove Last Element of Array and Return It
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;h3&gt;
  
  
  3. shift()
&lt;/h3&gt;



&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;arr.shift(); // Remove First Element of Array and Return It
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;h3&gt;
  
  
  4. unshift(element)
&lt;/h3&gt;



&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;arr.unshift(20); // Insert Element at First Position in Array
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;h3&gt;
  
  
  5. length ( Not a Method but a Property )
&lt;/h3&gt;



&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;arr.length; // Return Length of Array
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;h3&gt;
  
  
  6. fill(item)
&lt;/h3&gt;



&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;arr.fill(0); // Fill Entire Array With 0 or with Given Item
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;h3&gt;
  
  
  7. concat(array) ( Can Take Single Array or Multiple Arrays and Always Return New Array )
&lt;/h3&gt;



&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;let arr1 = [1,2,3];
let newArray=arr1.concat([4,5,6]); // O/P = [1,2,3,4,5,6]

let arr2 = [1,2];
let newArray=arr2.concat([4,5], [7,8]); // O/P = [1,2,4,5,7,8]
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;h3&gt;
  
  
  8. find() (Take a Function Which Execute and Return First Value Which Satisfies Condition)
&lt;/h3&gt;



&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;let arr = [1,2,3,4,5];
let found = arr.find(element =&amp;gt; element &amp;gt; 2);
console.log(found); // O/P = 3
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;h3&gt;
  
  
  9. findIndex() (Take a Function Which Execute and Return First Value Index Which Satisfies Condition)
&lt;/h3&gt;



&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;let arr = [1,2,3,4,5];
let found = arr.findIndex(element =&amp;gt; element &amp;gt; 2);
console.log(found); // O/P = 2
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;h3&gt;
  
  
  10. sort() // Sort According to Aplhabet Order
&lt;/h3&gt;



&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;let arr = [1,3,2,4,6];
arr.sort();
console.log(arr); // O/P = [1,2,3,4,6]

Note:- But This Method Will Not Sort Value Which is of 2 Digit, So We Need to Make Our Custom Function and Pass into Sort Method.

let arr = [1,4,2,45,6,7];
arr.sort((a,b) =&amp;gt; a-b); // Change a or b according to you if you want in Ascending or Descending Order.
console.log(arr); // O/P = [1,2,4,6,7,45];
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;h3&gt;
  
  
  11. reverse()
&lt;/h3&gt;



&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;let arr = [1,5,2,4,3];
let reversedArray = arr.reverse(); 
// Reverse Array and return Reference to Same Array
console.log(reversedArray); // O/P = [5,4,3,2,1]
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;h3&gt;
  
  
  12. slice(start, end) ( Extract Small Chunk of Array in Form of Array )
&lt;/h3&gt;



&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;start =&amp;gt; Starting Index From 0 and It is Included
end =&amp;gt; Ending Index Which is Length - 1 and It is Not Included

let arr = [1,2,3,4,5];
let slicedArray = arr.slice(0,3);
console.log(slicedArray); // O/P = [1,2,3]
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;h3&gt;
  
  
  13. splice(start, deleteCount: Optional, element: Optional) ( Remove Element From Array and Can Also Insert New Elements In the Place of Removed Element )
&lt;/h3&gt;



&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;let arr = [1,2,3,4,5];
let splicedArray1 = arr.splice(2); 
console.log(splicedArray1);

/*
Will Remove Array Element From Index 2 to End and Return in Form of Array.
O/P = [3,4,5]
*/

let splicedArray2 = arr.splice(2, 2 10, 30);
console.log(splicedArray2);

/*
Will Remove Array Element From Index 2 to End and Return in Form of Array.
O/P = [3, 4] // Spliced Array
O/P = [1,2,10,30,5] // Original Array After Inserting New Element InPlace of Removed Element.
*/
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;h3&gt;
  
  
  14. indexOf(element); ( Return Index of Given Element, If Element Not Found Return -1 )
&lt;/h3&gt;



&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;let arr = [1,2,3,4,5];
console.log(arr.indexOf(5)); // O/P = 4
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;h3&gt;
  
  
  15. includes(element, startIndex: Optional) ( Search For Given Element If Found Return True Otherwise False )
&lt;/h3&gt;



&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;let arr = [1,2,3,4,5];
console.log(arr.includes(5)); // O/P = true

console.log(arr.includes(2, 3)); // O/P = false, Because We Are Searching From Index 3 and 2 is Not Present in Array From Index 3.
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



</description>
      <category>javascript</category>
      <category>webdev</category>
    </item>
    <item>
      <title>How to Create Music Player UI Design Using HTML and CSS Only.</title>
      <dc:creator>Ajay Sharma</dc:creator>
      <pubDate>Wed, 14 Jul 2021 19:21:23 +0000</pubDate>
      <link>https://dev.to/ajaysharma12799/how-to-create-music-player-ui-design-using-html-and-css-only-5ai0</link>
      <guid>https://dev.to/ajaysharma12799/how-to-create-music-player-ui-design-using-html-and-css-only-5ai0</guid>
      <description>&lt;p&gt;Hello Everyone, In this Post We Will be Seeing How to Create Music Player UI Design Using HTML and CSS Only.&lt;/p&gt;

&lt;p&gt;Here is The Live Link of Page &lt;a href="https://music-player-ui-design.netlify.app/"&gt;https://music-player-ui-design.netlify.app/&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;Follow Me on LinkedIn &lt;a href="https://www.linkedin.com/in/ajaysharma12799/"&gt;https://www.linkedin.com/in/ajaysharma12799/&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;Follow Me on Github &lt;a href="https://www.github.com/ajaysharma12799/"&gt;https://www.github.com/ajaysharma12799/&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;Steps to Create :-&lt;/p&gt;

&lt;ol&gt;
&lt;li&gt;Choose Any Text Editor (VSCode Recommended).&lt;/li&gt;
&lt;li&gt;Create 2 Files in Current Project Directory, index.html and style.css.&lt;/li&gt;
&lt;li&gt;Use Below HTML and CSS Code To Build Your Page.
&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;!DOCTYPE html&amp;gt;
&amp;lt;html lang="en"&amp;gt;
&amp;lt;head&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;title&amp;gt;Music Player Design&amp;lt;/title&amp;gt;
    &amp;lt;link href="https://fonts.googleapis.com/css2?family=Cutive+Mono&amp;amp;family=Poppins:wght@100;200;300;400;500;600;700&amp;amp;display=swap" rel="stylesheet"&amp;gt;    
    &amp;lt;link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/5.15.3/css/all.min.css" integrity="sha512-iBBXm8fW90+nuLcSKlbmrPcLa0OT92xO1BIsZ+ywDWZCvqsWgccV3gFoRBv0z+8dLJgyAHIhR35VZc2oM/gI1w==" crossorigin="anonymous" referrerpolicy="no-referrer" /&amp;gt;
    &amp;lt;link rel="stylesheet" href="style.css"&amp;gt;
&amp;lt;/head&amp;gt;
&amp;lt;body&amp;gt;
    &amp;lt;div class="container card"&amp;gt;
        &amp;lt;div class="music-image"&amp;gt;
            &amp;lt;img src="https://image.freepik.com/free-vector/elegant-musical-notes-music-chord-background_1017-20759.jpg" alt="Music Image"&amp;gt;
        &amp;lt;/div&amp;gt;
        &amp;lt;div class="music-description"&amp;gt;
            &amp;lt;h1 class="music-name"&amp;gt;Repeat&amp;lt;/h1&amp;gt;
            &amp;lt;h5 class="music-artist-name"&amp;gt;Jazzy B&amp;lt;/h5&amp;gt;
            &amp;lt;div class="music-buttons"&amp;gt;
                &amp;lt;span class="music-button-left"&amp;gt;
                    &amp;lt;i class="fas fa-chevron-left"&amp;gt;&amp;lt;/i&amp;gt;
                    &amp;lt;i class="fas fa-chevron-left"&amp;gt;&amp;lt;/i&amp;gt;
                &amp;lt;/span&amp;gt;
                &amp;lt;span class="music-button-pause"&amp;gt;
                    &amp;lt;i class="fas fa-pause"&amp;gt;&amp;lt;/i&amp;gt;
                &amp;lt;/span&amp;gt;
                &amp;lt;span class="music-button-right"&amp;gt;
                    &amp;lt;i class="fas fa-chevron-right"&amp;gt;&amp;lt;/i&amp;gt;
                    &amp;lt;i class="fas fa-chevron-right"&amp;gt;&amp;lt;/i&amp;gt;
                &amp;lt;/span&amp;gt;
            &amp;lt;/div&amp;gt;
        &amp;lt;/div&amp;gt;
    &amp;lt;/div&amp;gt;
&amp;lt;/body&amp;gt;
&amp;lt;/html&amp;gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;





&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;:root {
    --mainColor1: #538FFB;
    --mainColor2: #5B54FA;
}
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}
body {
    font-weight: lighter;
    font-family: Poppins, sans-serif;
    background-color: #CAD5E2;
    overflow: hidden;
}
.container {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
    position: absolute;
    top: 50%;
    left: 50%;
    height: 60%;
    transform: translate(-50%, -50%); 
}
.card {
    padding: 20px 50px;
    width: 500px;
    background: linear-gradient(to top right, var(--mainColor1), var(--mainColor2));
    border-radius: 10px;
    box-shadow: 0 0 15px rgba(255, 255, 255, 0.7), 0 0 200px rgba(255, 255, 255, 0.7);
}
.music-image {
    width: 500px;
    height: 350px;
    margin: 0 auto;
    position: absolute;
    top: 50%;
    left: 70%;
    transform: translate(-50%, -50%);
}
.music-image &amp;gt; img {
    width: 60%;
    height: 60%;
    border-radius: 10px;
    box-shadow: 0 0 15px rgba(255, 255, 255, 0.7), 0 0 200px rgba(255, 255, 255, 0.7);
}
.music-description {
    position: absolute;
    left: 20%;
    top: 60%;
    margin-top: 5%;
    color: #fff;
}
.music-name {
    margin-top: -5%;
    font-size: 40px;
    font-weight: 300;
}
.music-artist-name {
    font-size: 20px;
    font-weight: 250;
}
.music-buttons {
    margin-top: 5%;
    display: flex;
    width: 300px;
    justify-content: space-between;
    align-items: center;
}
.music-button-left, 
.music-button-pause, 
.music-button-right {
    cursor: pointer;
}

@media screen and (max-width: 550px) {
    .container {
        display: flex;
        justify-content: center;
        align-items: center;
        flex-direction: column;
    }
    .card {
        width: 400px;
    }
    .music-image {
        width: 500px;
        height: 350px;
        position: absolute;
        top: 50%;
        left: 77%;
    }
    .music-description {
        position: absolute;
        left: 15%;
        top: 60%;
    }
}
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



</description>
      <category>html</category>
      <category>css</category>
      <category>webdev</category>
    </item>
    <item>
      <title>How to Create Custom Checkbox Animation Using HTML and CSS Only.</title>
      <dc:creator>Ajay Sharma</dc:creator>
      <pubDate>Tue, 13 Jul 2021 08:46:59 +0000</pubDate>
      <link>https://dev.to/ajaysharma12799/how-to-create-custom-checkbox-animation-using-html-and-css-only-2eg5</link>
      <guid>https://dev.to/ajaysharma12799/how-to-create-custom-checkbox-animation-using-html-and-css-only-2eg5</guid>
      <description>&lt;p&gt;Hello Everyone, In this Post We Will be Seeing How to Create Custom Checkbox Animation Using HTML and CSS only.&lt;/p&gt;

&lt;p&gt;Here is The Live Link of Page &lt;a href="https://checkbox-animation.netlify.app/"&gt;https://checkbox-animation.netlify.app/&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;Follow Me on LinkedIn &lt;a href="https://www.linkedin.com/in/ajaysharma12799/"&gt;https://www.linkedin.com/in/ajaysharma12799/&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;Follow Me on Github &lt;a href="https://www.github.com/ajaysharma12799/"&gt;https://www.github.com/ajaysharma12799/&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;Steps to Create :-&lt;/p&gt;

&lt;ol&gt;
&lt;li&gt;Choose Any Text Editor (VSCode Recommended).&lt;/li&gt;
&lt;li&gt;Create 2 Files in Current Project Directory, index.html and style.css.&lt;/li&gt;
&lt;li&gt;Use Below HTML and CSS Code To Build Your Page.
&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;!DOCTYPE html&amp;gt;
&amp;lt;html lang="en"&amp;gt;

&amp;lt;head&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;title&amp;gt;Custom Checkbox&amp;lt;/title&amp;gt;
    &amp;lt;link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/5.15.3/css/all.min.css"
        integrity="sha512-iBBXm8fW90+nuLcSKlbmrPcLa0OT92xO1BIsZ+ywDWZCvqsWgccV3gFoRBv0z+8dLJgyAHIhR35VZc2oM/gI1w=="
        crossorigin="anonymous" referrerpolicy="no-referrer" /&amp;gt;
    &amp;lt;link rel="stylesheet" href="style.css"&amp;gt;
&amp;lt;/head&amp;gt;

&amp;lt;body&amp;gt;
    &amp;lt;div class="container"&amp;gt;
        &amp;lt;div class="one"&amp;gt;
            &amp;lt;input type="checkbox" name="option1" id="option1"&amp;gt;
            &amp;lt;label for="option1"&amp;gt;
                &amp;lt;span class="name"&amp;gt;Checkbox 1&amp;lt;/span&amp;gt;
                &amp;lt;span class="icon"&amp;gt;&amp;lt;i class="fa fa-check" aria-hidden="true"&amp;gt;&amp;lt;/i&amp;gt;&amp;lt;/span&amp;gt;
            &amp;lt;/label&amp;gt;
        &amp;lt;/div&amp;gt;
        &amp;lt;div class="two"&amp;gt;
            &amp;lt;input type="checkbox" name="option2" id="option2"&amp;gt;
            &amp;lt;label for="option2"&amp;gt;
                &amp;lt;span class="name"&amp;gt;Checkbox 2&amp;lt;/span&amp;gt;
                &amp;lt;span class="icon"&amp;gt;&amp;lt;i class="fa fa-check"&amp;gt;&amp;lt;/i&amp;gt;&amp;lt;/span&amp;gt;
            &amp;lt;/label&amp;gt;
        &amp;lt;/div&amp;gt;
        &amp;lt;div class="three"&amp;gt;
            &amp;lt;input type="checkbox" name="option3" id="option3"&amp;gt;
            &amp;lt;label for="option3"&amp;gt;
                &amp;lt;span class="name"&amp;gt;Checkbox 3&amp;lt;/span&amp;gt;
                &amp;lt;span class="icon"&amp;gt;&amp;lt;i class="fa fa-check"&amp;gt;&amp;lt;/i&amp;gt;&amp;lt;/span&amp;gt;
            &amp;lt;/label&amp;gt;
        &amp;lt;/div&amp;gt;
    &amp;lt;/div&amp;gt;
&amp;lt;/body&amp;gt;

&amp;lt;/html&amp;gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;





&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}
body {
    font-weight: lighter;
}
.container {
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    display: flex;
    flex-direction: column;
}
input {
    display: none;
}
label {
    position: relative;
    width: 290px;
    height: 50px;
    background-color: #ededed;
    margin: .5rem;
    padding: 0 1.5rem;
    overflow: hidden;
    font-size: 20px;
    border-radius: 3px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}
label::after {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 320px;
    height: 70px;
    background-color: #4DD637;
    transition: 0.5s ease;
    clip-path: circle(0px at 260px 25px);
}
.name {
    z-index: 1;
    transition: 0.5s;
}
.icon {
    display: block;
    transition: 0.5s;
    border-radius: 50%;
    width: 25px;
    height: 25px;
    display: grid;
    place-items: center;
    font-size: 20px;
    z-index: 1;
    color: #ededed;
    border: 2px solid #dbdbdb;
}
input:checked + label::after {
    clip-path: circle(100%);
}
input:checked + label .name {
    color: #fff;
}
input:checked + label .icon {
    border-color: #fff;
    color: #fff;
}
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



</description>
      <category>html</category>
      <category>css</category>
      <category>webdev</category>
    </item>
    <item>
      <title>How to Create Different Animation on Button on Hover Using HTML and CSS Only .</title>
      <dc:creator>Ajay Sharma</dc:creator>
      <pubDate>Sun, 11 Jul 2021 20:19:16 +0000</pubDate>
      <link>https://dev.to/ajaysharma12799/how-to-create-different-animation-on-button-on-hover-using-html-and-css-only-30i0</link>
      <guid>https://dev.to/ajaysharma12799/how-to-create-different-animation-on-button-on-hover-using-html-and-css-only-30i0</guid>
      <description>&lt;p&gt;Hello Everyone, In this Post We Will be Seeing How to Create Different Animation on Button on Hovering Using HTML and CSS only.&lt;/p&gt;

&lt;p&gt;Here is The Live Link of Page &lt;a href="https://button-animation.netlify.app/"&gt;https://button-animation.netlify.app/&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;Follow Me on LinkedIn &lt;a href="https://www.linkedin.com/in/ajaysharma12799/"&gt;https://www.linkedin.com/in/ajaysharma12799/&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;Follow Me on Github &lt;a href="https://www.github.com/ajaysharma12799/"&gt;https://www.github.com/ajaysharma12799/&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;Steps to Create :-&lt;/p&gt;

&lt;ol&gt;
&lt;li&gt;Choose Any Text Editor (VSCode Recommended).&lt;/li&gt;
&lt;li&gt;Create 2 Files in Current Project Directory, index.html and style.css.&lt;/li&gt;
&lt;li&gt;Use Below HTML and CSS Code To Build Your Page.
&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;!DOCTYPE html&amp;gt;
&amp;lt;html lang="en"&amp;gt;
&amp;lt;head&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;title&amp;gt;Button Design Animations&amp;lt;/title&amp;gt;
    &amp;lt;link rel="stylesheet" href="style.css"&amp;gt;
&amp;lt;/head&amp;gt;
&amp;lt;body&amp;gt;
    &amp;lt;div class="container"&amp;gt;
        &amp;lt;div class="heading"&amp;gt;
            Different Hover Animation on Buttons
        &amp;lt;/div&amp;gt;
        &amp;lt;div class="buttons"&amp;gt;
            &amp;lt;button class="btn1"&amp;gt;Slide From Left&amp;lt;/button&amp;gt;
            &amp;lt;button class="btn2"&amp;gt;Slide From Right&amp;lt;/button&amp;gt;
            &amp;lt;button class="btn3"&amp;gt;Slide From Top&amp;lt;/button&amp;gt;
            &amp;lt;button class="btn4"&amp;gt;Slide From Bottom&amp;lt;/button&amp;gt;
            &amp;lt;button class="btn5"&amp;gt;Glow Animation&amp;lt;/button&amp;gt;
        &amp;lt;/div&amp;gt;
    &amp;lt;/div&amp;gt;
&amp;lt;/body&amp;gt;
&amp;lt;/html&amp;gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;





&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;:root {
    --primaryColor: #ff96ad;
}
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}
.heading {
    font-weight: lighter;
    font-size: 30px;
    text-align: center;
    margin-top: 5%;
    margin-bottom: 5%;
}
.buttons {
    display: grid;
    justify-content: center;
    align-items: center;
}
button {
    width: 250px;
    height: 50px;
    font-size: 20px;
    font-weight: lighter;
    text-align: center;
    cursor: pointer;
    border: 0;
    transition: 0.5s ease-in;
    position: relative;
    z-index: 1;
    overflow: hidden;
}
.btn1, .btn2, .btn3, .btn4, .btn5 {
    margin-bottom: 10px;
}
.btn1:hover, .btn2:hover, .btn3:hover, .btn4:hover, .btn5:hover {
    color: #fff;
}
button::before, button::after {
    content: "";
    background-color: var(--primaryColor);
    position: absolute;
    z-index: -1;
}

/* Button 1 */
.btn1::after {
    width: 0;
    left: 0;
    top: 0;
    height: 100%;
    transition-duration: 0.5s;
}
.btn1:hover::after {
    width: 100%;
}

/* Button 2 */
.btn2::after {
    width: 0;
    top: 0;
    right: 0;
    height: 100%;
    transition-duration: 0.5s;
}
.btn2:hover::after {
    width: 100%;
}

/* Button 3 */
.btn3::after {
    height: 0;
    left: 0;
    top: 0;
    transition-duration: .5s;
    width: 100%;
}
.btn3:hover::after {
    height: 100%;
}
/* Button 4 */
.btn4::after {
    height: 0;
    bottom: 0;
    left: 0;
    transition-duration: 0.5s;
    width: 100%;
}
.btn4:hover::after {
    height: 100%;
}

/* Button 5 */
.btn5:hover {
    background-color: var(--primaryColor);
    color: #fff;
    box-shadow: 0 0 5px var(--primaryColor), 0 0 200px var(--primaryColor);
}
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



</description>
      <category>html</category>
      <category>css</category>
      <category>webdev</category>
    </item>
    <item>
      <title>How to Create Social Media Icon with Hover Animation Using HTML and CSS Only.</title>
      <dc:creator>Ajay Sharma</dc:creator>
      <pubDate>Sat, 10 Jul 2021 14:01:26 +0000</pubDate>
      <link>https://dev.to/ajaysharma12799/how-to-create-social-media-icon-with-hover-animation-using-html-and-css-only-5345</link>
      <guid>https://dev.to/ajaysharma12799/how-to-create-social-media-icon-with-hover-animation-using-html-and-css-only-5345</guid>
      <description>&lt;p&gt;Hello Everyone, In this Post We Will be Seeing How to Create Social Media Icon with Hover Animation Using HTML and CSS only.&lt;/p&gt;

&lt;p&gt;Here is The Live Link of Page &lt;a href="https://ajaysharma12799.github.io/Social-Media-Icon-with-Hover-Animation/"&gt;https://ajaysharma12799.github.io/Social-Media-Icon-with-Hover-Animation/&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;Follow Me on LinkedIn &lt;a href="https://www.linkedin.com/in/ajaysharma12799/"&gt;https://www.linkedin.com/in/ajaysharma12799/&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;Follow Me on Github &lt;a href="https://www.github.com/ajaysharma12799/"&gt;https://www.github.com/ajaysharma12799/&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;Steps to Create :-&lt;/p&gt;

&lt;ol&gt;
&lt;li&gt;Choose Any Text Editor (VSCode Recommended).&lt;/li&gt;
&lt;li&gt;Create 2 Files in Current Project Directory, index.html and style.css.&lt;/li&gt;
&lt;li&gt;Use Below HTML and CSS Code To Build Your Page.
&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;!DOCTYPE html&amp;gt;
&amp;lt;html lang="en"&amp;gt;
&amp;lt;head&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;title&amp;gt;Social Media Icon with Hover Animation&amp;lt;/title&amp;gt;
    &amp;lt;link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/5.15.3/css/all.min.css" integrity="sha512-iBBXm8fW90+nuLcSKlbmrPcLa0OT92xO1BIsZ+ywDWZCvqsWgccV3gFoRBv0z+8dLJgyAHIhR35VZc2oM/gI1w==" crossorigin="anonymous" referrerpolicy="no-referrer" /&amp;gt;
    &amp;lt;link rel="stylesheet" href="style.css"&amp;gt;
&amp;lt;/head&amp;gt;
&amp;lt;body&amp;gt;
    &amp;lt;div class="container"&amp;gt;
        &amp;lt;div class="button"&amp;gt;
            &amp;lt;div class="icon"&amp;gt;
                &amp;lt;i class="fab fa-facebook"&amp;gt;&amp;lt;/i&amp;gt;
            &amp;lt;/div&amp;gt;
            &amp;lt;span&amp;gt;Facebook&amp;lt;/span&amp;gt;
        &amp;lt;/div&amp;gt;
        &amp;lt;div class="button"&amp;gt;
            &amp;lt;div class="icon"&amp;gt;
                &amp;lt;i class="fab fa-twitter"&amp;gt;&amp;lt;/i&amp;gt;
            &amp;lt;/div&amp;gt;
            &amp;lt;span&amp;gt;Twitter&amp;lt;/span&amp;gt;
        &amp;lt;/div&amp;gt;
        &amp;lt;div class="button"&amp;gt;
            &amp;lt;div class="icon"&amp;gt;
                &amp;lt;i class="fab fa-linkedin"&amp;gt;&amp;lt;/i&amp;gt;
            &amp;lt;/div&amp;gt;
            &amp;lt;span&amp;gt;LinkedIn&amp;lt;/span&amp;gt;
        &amp;lt;/div&amp;gt;
    &amp;lt;/div&amp;gt;
&amp;lt;/body&amp;gt;
&amp;lt;/html&amp;gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;





&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;:root {
    --facebookColor: #4267B2;
    --twitterColor: #1DA1F2;
    --linkedinColor: #0077b5;
}
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}
body {
    background: #CAD5E2;
}
.container {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
    margin-top: 10vh;
}
.fab {
    font-size: 5rem;
}
.button{
    float: left;
    cursor: pointer;
    overflow: hidden;
    margin-top: 5%;
    transition: all .5s ease;
}
.button .icon {
    display: inline-block;
    text-align: center;
    width: 100%;
}
.button &amp;gt; span {
    opacity: 0;
    font-size: 25px;
}
.button:nth-child(1):hover {
    background-color: var(--facebookColor);
    color: #fff;
    border-radius: 10px;
    padding: 7px;
    text-align: center;
    padding: 20px;
    transition: all .5s ease;
}
.button:nth-child(2):hover {
    background-color: var(--twitterColor);
    color: #fff;
    border-radius: 10px;
    padding: 7px;
    text-align: center;
    padding: 20px;
    transition: all .5s ease;
}
.button:nth-child(3):hover {
    background-color: var(--linkedinColor);
    color: #fff;
    border-radius: 10px;
    padding: 7px;
    text-align: center;
    padding: 20px;
    transition: all .5s ease;
}
.button:nth-child(1):hover &amp;gt; span {
    opacity: 1;
    color: #fff;
    position: relative;
    top: 10px;
    border-bottom: 1px solid yellow;
    transition: all .5s ease;
}
.button:nth-child(2):hover &amp;gt; span {
    opacity: 1;
    color: #fff;
    position: relative;
    top: 10px;
    border-bottom: 1px solid yellow;
    transition: all .5s ease;
}
.button:nth-child(3):hover &amp;gt; span {
    opacity: 1;
    color: #fff;
    position: relative;
    top: 10px;
    border-bottom: 1px solid yellow;
    transition: all .5s ease;
}
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



</description>
      <category>html</category>
      <category>css</category>
      <category>webdev</category>
    </item>
    <item>
      <title>How to Make Glowing Social Media Icon Using HTML and CSS Only.</title>
      <dc:creator>Ajay Sharma</dc:creator>
      <pubDate>Fri, 09 Jul 2021 12:00:15 +0000</pubDate>
      <link>https://dev.to/ajaysharma12799/how-to-make-glowing-social-media-icon-using-html-and-css-only-1i5</link>
      <guid>https://dev.to/ajaysharma12799/how-to-make-glowing-social-media-icon-using-html-and-css-only-1i5</guid>
      <description>&lt;p&gt;Hello Everyone, In this Post We Will be Seeing How to Glowing Social Media Icon Using HTML and CSS only.&lt;/p&gt;

&lt;p&gt;Here is The Live Link of Glowing SocialMedia Page &lt;a href="https://ajaysharma12799.github.io/Glowing-SocialMedia-Icon/"&gt;https://ajaysharma12799.github.io/Glowing-SocialMedia-Icon/&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;Follow Me on LinkedIn &lt;a href="https://www.linkedin.com/in/ajaysharma12799/"&gt;https://www.linkedin.com/in/ajaysharma12799/&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;Follow Me on Github &lt;a href="https://www.github.com/ajaysharma12799/"&gt;https://www.github.com/ajaysharma12799/&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;Steps to Create :-&lt;/p&gt;

&lt;ol&gt;
&lt;li&gt;Choose Any Text Editor (VSCode Recommended).&lt;/li&gt;
&lt;li&gt;Create 2 Files in Current Project Directory, index.html and 
style.css.&lt;/li&gt;
&lt;li&gt;Use Below HTML and CSS Code To Build Your Page.
&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;!DOCTYPE html&amp;gt;
&amp;lt;html lang="en"&amp;gt;
&amp;lt;head&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;title&amp;gt;Glowing Social Media Icons&amp;lt;/title&amp;gt;
    &amp;lt;link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/5.15.3/css/all.min.css" integrity="sha512-iBBXm8fW90+nuLcSKlbmrPcLa0OT92xO1BIsZ+ywDWZCvqsWgccV3gFoRBv0z+8dLJgyAHIhR35VZc2oM/gI1w==" crossorigin="anonymous" referrerpolicy="no-referrer" /&amp;gt;
    &amp;lt;link rel="stylesheet" href="style.css"&amp;gt;
&amp;lt;/head&amp;gt;
&amp;lt;body&amp;gt;
    &amp;lt;div class="container"&amp;gt;
        &amp;lt;div class="facebook"&amp;gt;&amp;lt;i class="fab fa-facebook"&amp;gt;&amp;lt;/i&amp;gt;&amp;lt;/div&amp;gt;
        &amp;lt;div class="instagram"&amp;gt;&amp;lt;i class="fab fa-instagram"&amp;gt;&amp;lt;/i&amp;gt;&amp;lt;/div&amp;gt;
        &amp;lt;div class="twitter"&amp;gt;&amp;lt;i class="fab fa-twitter"&amp;gt;&amp;lt;/i&amp;gt;&amp;lt;/div&amp;gt;
        &amp;lt;div class="linkedin"&amp;gt;&amp;lt;i class="fab fa-linkedin"&amp;gt;&amp;lt;/i&amp;gt;&amp;lt;/div&amp;gt;
        &amp;lt;div class="github"&amp;gt;&amp;lt;i class="fab fa-github"&amp;gt;&amp;lt;/i&amp;gt;&amp;lt;/div&amp;gt;
        &amp;lt;div class="youtube"&amp;gt;&amp;lt;i class="fab fa-youtube"&amp;gt;&amp;lt;/i&amp;gt;&amp;lt;/div&amp;gt;
    &amp;lt;/div&amp;gt;
&amp;lt;/body&amp;gt;
&amp;lt;/html&amp;gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;





&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;:root{
    --fbColor: #4267B2;
    --instaColor: #cd486b;
    --twitterColor: #1DA1F2;
    --linkedinColor: #0077b5;
    --githubColor: black;
    --ytColor: #FF0000;
}
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}
body {
    background-color: #CAD5E2;
}
.container {
    width: 50vw;
    margin: 0 auto;
    margin-top: 50vh;
    display: flex;
    justify-content: space-evenly;
    align-content: center;
}
.fab {
    border: 1px solid;
    padding: 30px;
    font-size: 30px;
    border-radius: 50%;
    cursor: pointer;
}
.fab:hover {
    border: none;
    animation: grow 1s infinite alternate ease-in-out
}
.facebook:hover {
    background-color: var(--fbColor);
    color: #fff;
    border-radius: 50%;
    box-shadow: 0 0 50px var(--fbColor);
}
.instagram:hover {
    background-color: var(--instaColor);
    border-radius: 50%;
    color: #fff;
    box-shadow: 0 0 50px var(--instaColor);
}
.twitter:hover {
    background-color: var(--twitterColor);
    border-radius: 50%;
    color: #fff;
    box-shadow: 0 0 50px var(--twitterColor);
}
.linkedin:hover {
    background-color: var(--linkedinColor);
    border-radius: 50%;
    color: #fff;
    box-shadow: 0 0 50px var(--linkedinColor);
}
.github:hover {
    background-color: var(--githubColor);
    border-radius: 50%;
    color: #fff;
    box-shadow: 0 0 50px var(--githubColor);
}
.youtube:hover {
    background-color: var(--ytColor);
    border-radius: 50%;
    color: #fff;
    box-shadow: 0 0 50px var(--ytColor);
}
@keyframes grow {
    from {
        transform: scale(1);
        font-size: 30px;
    }
    to {
        transform: scale(1.5);
        font-size: 50px;
    }
}
@media (max-width: 768px) {
    .container {
        margin: 0 auto;
        display: grid;
        flex-direction: column;
        justify-content: center;
        align-content: center;
        margin-top: 5%;
        margin-bottom: 5%;
    }
    .fab {
        border: 1px solid;
        padding: 30px;
        font-size: 30px;
        border-radius: 50%;
        cursor: pointer;
    }
    .fab:hover {
        border: none;
        animation: grow 1s infinite alternate ease-in-out
    }
    .facebook, .instagram, .twitter, .linkedin, .github, .youtube {
        margin-top: 20%;
    }
}
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



</description>
      <category>html</category>
      <category>css</category>
      <category>webdev</category>
    </item>
    <item>
      <title>How to Create Facebook Landing Page Using HTML and CSS Only.</title>
      <dc:creator>Ajay Sharma</dc:creator>
      <pubDate>Fri, 09 Jul 2021 07:52:26 +0000</pubDate>
      <link>https://dev.to/ajaysharma12799/how-to-create-facebook-landing-page-using-html-and-css-only-1723</link>
      <guid>https://dev.to/ajaysharma12799/how-to-create-facebook-landing-page-using-html-and-css-only-1723</guid>
      <description>&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%2Fuploads%2Farticles%2Fs8kfunbc4wwa01xyuklx.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%2Fuploads%2Farticles%2Fs8kfunbc4wwa01xyuklx.png" alt="Facebook Landing Page"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;Hello Everyone, In this Post We Will be Seeing How to Create Facebook Landing Page Using HTML and CSS only.&lt;/p&gt;

&lt;p&gt;Here is The Live Link of Landing Page &lt;a href="https://ajaysharma12799.github.io/Facebook-Landing-Page/" rel="noopener noreferrer"&gt;https://ajaysharma12799.github.io/Facebook-Landing-Page/&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;Follow Me on LinkedIn &lt;a href="https://www.linkedin.com/in/ajaysharma12799/" rel="noopener noreferrer"&gt;https://www.linkedin.com/in/ajaysharma12799/&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;Follow Me on Github &lt;a href="https://www.github.com/ajaysharma12799/" rel="noopener noreferrer"&gt;https://www.github.com/ajaysharma12799/&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;Steps to Create :-&lt;/p&gt;

&lt;ol&gt;
&lt;li&gt;Choose Any Text Editor (VSCode Recommended).&lt;/li&gt;
&lt;li&gt;Setup Directory Structure.
&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%2Fuploads%2Farticles%2Fg771fuu24u62me5m26av.png" alt="Directory Structure"&gt;
&lt;/li&gt;
&lt;li&gt;Use Below HTML and CSS Code To Build Your Page.
&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;!DOCTYPE html&amp;gt;
&amp;lt;html lang="en"&amp;gt;
&amp;lt;head&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;title&amp;gt;Facebook - Login or Signup&amp;lt;/title&amp;gt;
    &amp;lt;link rel="stylesheet" href="style.css"&amp;gt;
&amp;lt;/head&amp;gt;
&amp;lt;body&amp;gt;
    &amp;lt;div id="container"&amp;gt;
        &amp;lt;div class="text__wrapper"&amp;gt;
            &amp;lt;div class="heading"&amp;gt;
                &amp;lt;img src="./img/facebook.svg" alt="Facebook"&amp;gt;
            &amp;lt;/div&amp;gt;
            &amp;lt;p class="description"&amp;gt;Facebook helps you connect and share with the people in your life.&amp;lt;/p&amp;gt;
        &amp;lt;/div&amp;gt;
        &amp;lt;div class="form__wrapper"&amp;gt;
            &amp;lt;form class="form"&amp;gt;
                &amp;lt;div&amp;gt;
                    &amp;lt;input type="text" name="Email_Mobile" id="Email_Mobile" placeholder="Email Address or Phone Number"&amp;gt;
                &amp;lt;/div&amp;gt;
                &amp;lt;div&amp;gt;
                    &amp;lt;input type="password" name="Password" id="Password" placeholder="Password"&amp;gt;
                &amp;lt;/div&amp;gt;
                &amp;lt;div&amp;gt;
                    &amp;lt;button type="submit" class="loginButton btn"&amp;gt;Login&amp;lt;/button&amp;gt;
                &amp;lt;/div&amp;gt;
            &amp;lt;/form&amp;gt;
            &amp;lt;a href="#" class="forgotPassword"&amp;gt;Forgotten Password?&amp;lt;/a&amp;gt;
            &amp;lt;button type="submit" class="registerButton btn"&amp;gt;Create New Account&amp;lt;/button&amp;gt;
        &amp;lt;/div&amp;gt;
    &amp;lt;/div&amp;gt;
&amp;lt;/body&amp;gt;
&amp;lt;/html&amp;gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;





&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;@import url('https://fonts.googleapis.com/css2?family=Roboto:wght@300&amp;amp;display=swap');
:root {
    --primaryColor: rgb(25,119,242);
    --buttonColor: rgb(66,183,41);
    --bodyColor: rgb(239,242,245);
    --textColor: rgb(27,30,33);
}
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}
body {
    background-color: var(--bodyColor);
    font-family: 'Roboto', sans-serif;

}
a {
    text-decoration: none; 
    color: var(--buttonColor);   
}
button {
    border: none;
}
a:hover {
    text-decoration: underline;
}
input {
    padding: 7px;
    margin: 2% 0;
    border: 1px solid lightgray;
    border-radius: 5px;
    width: 200px;
}
input::placeholder {
    color: gray;
    font-weight: lighter;
    font-size: 10px;
}
.btn {
    width: 100%;
    border-radius: 3px;
    color: #fff;
    padding: 6px;
}
#container {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-top: 10%;
}
.text__wrapper {
    width: 37vw;
    margin-right: 3%;
    margin-top: 5%;
}
.heading {
    position: relative;
    top: -50%;
    left: -7%;
}
.heading &amp;gt; img {
    width: 350px;
}
.description {
    color: var(--textColor);
    font-weight: 900;
    font-size: 30px;
    float: left;
}
.form__wrapper {
    width: 300px;
    height: 250px;
    margin-top: 5%;
    background-color: #fff;
    padding: 5% 2% 5% 2%;
    border-radius: 5px;
    line-height: 150%;
    display: grid;
    justify-content: center;
    align-items: center;
    box-shadow: 0 4px 8px 0 rgba(0, 0, 0, 0.2), 0 6px 20px 0 rgba(0, 0, 0, 0.19);
}
.form {
    margin-top: -18%;
    margin-bottom: 7%;
}
.loginButton {
    background-color: var(--primaryColor); 
    color: #fff; 
    margin-top: 2%;
} 
.forgotPassword {
    color: var(--primaryColor);
    font-size: 10px;
    text-align: center;
}
.registerButton {
    background-color: var(--buttonColor); 
    color: #fff; 
    font-size: 10px;
    width: 60%;
    padding: 8px;
    font-weight: bold;
    margin: 0 auto;
    margin-top: 3%;
    margin-bottom: 3%;
}
/* Responsive Design */

/* Small Mobile Device */
@media (max-width: 320px) {
    #container {
        display: grid;
        margin-top: 10vh;
        justify-content: center;
    }
    .text__wrapper {
        width: 100%;
        margin-right: 3%;
        margin-top: -5%;
        text-align: center;
        margin: 0 auto;
    }
    .heading &amp;gt; img {
        width: 300px;
        position: relative;
        left: 8%;
    }
    .description {
        margin-bottom: 10%;
    }
    .form__wrapper {
        margin: 0 auto;
        height: 200px;
        background-color: #fff;
        box-shadow: 0 4px 8px 0 rgba(0, 0, 0, 0.2), 0 6px 20px 0 rgba(0, 0, 0, 0.19);
    }
    .form {
        margin-top: -5%;
    }
    .loginButton {
        background-color: var(--primaryColor); 
        color: #fff; 
        margin-top: 2%;
    } 
    .forgotPassword {
        color: var(--primaryColor);
        font-size: 10px;
        text-align: center;
    }
    .registerButton {
        background-color: var(--buttonColor); 
        color: #fff; 
        font-size: 10px;
        width: 60%;
        padding: 8px;
        font-weight: bold;
        margin: 0 auto;
    }
}

/* Average Mobile Devices */
@media (min-width: 320px) and (max-width: 480px) {
    #container {
        display: grid;
        margin-top: 10vh;
        justify-content: center;
    }
    .text__wrapper {
        width: 100%;
        margin-right: 3%;
        margin-top: -5%;
        text-align: center;
    }
    .heading &amp;gt; img {
        width: 350px;
        position: relative;
        left: 8%;
    }
    .description {
        margin-bottom: 5%;
    }
    .form__wrapper {
        width: 220px;
        height: 200px;
        margin-left: 3%;
        background-color: #fff;
        padding: 5% 2% 5% 2%;
        border-radius: 5px;
        margin: 0 auto;
        box-shadow: 0 4px 8px 0 rgba(0, 0, 0, 0.2), 0 6px 20px 0 rgba(0, 0, 0, 0.19);
    }
    .form {
        margin-top: -8%;
    }
    .loginButton {
        background-color: var(--primaryColor); 
        color: #fff; 
        margin-top: 2%;
    } 
    .forgotPassword {
        color: var(--primaryColor);
        font-size: 10px;
        text-align: center;
    }
    .registerButton {
        background-color: var(--buttonColor); 
        color: #fff; 
        font-size: 10px;
        width: 60%;
        padding: 8px;
        font-weight: bold;
        margin: 0 auto;
        margin-top: 3%;
        margin-bottom: 3%;
    }
}

/* Tablet and IPads */
@media (min-width: 481px) and (max-width: 768px) {
    #container {
        display: grid;
        margin-top: 10vh;
        justify-content: center;
    }
    .text__wrapper {
        width: 100%;
        margin-right: 3%;
        margin-top: -5%;
        text-align: center;
    }
    .heading &amp;gt; img {
        width: 350px;
        position: relative;
        left: 8%;
    }
    .description {
        margin-bottom: 5%;
    }
    .form__wrapper {
        width: 220px;
        height: 220px;
        margin-left: 3%;
        background-color: #fff;
        padding: 5% 2% 5% 2%;
        border-radius: 5px;
        margin: 0 auto;
        box-shadow: 0 4px 8px 0 rgba(0, 0, 0, 0.2), 0 6px 20px 0 rgba(0, 0, 0, 0.19);
    }
    .form {
        margin-top: -8%;
    }
    .loginButton {
        background-color: var(--primaryColor); 
        color: #fff; 
        margin-top: 2%;
    } 
    .forgotPassword {
        color: var(--primaryColor);
        font-size: 10px;
        text-align: center;
    }
    .registerButton {
        background-color: var(--buttonColor); 
        color: #fff; 
        font-size: 10px;
        width: 60%;
        padding: 8px;
        font-weight: bold;
        margin: 0 auto;
        margin-top: 3%;
        margin-bottom: 3%;
    }
}
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



</description>
      <category>html</category>
      <category>css</category>
      <category>javascript</category>
    </item>
  </channel>
</rss>
