<?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: Promise Omoigui</title>
    <description>The latest articles on DEV Community by Promise Omoigui (@techgoddess).</description>
    <link>https://dev.to/techgoddess</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%2F1052098%2Fec94864f-46a1-4ebd-bdc3-c2614225ecb2.jpg</url>
      <title>DEV Community: Promise Omoigui</title>
      <link>https://dev.to/techgoddess</link>
    </image>
    <atom:link rel="self" type="application/rss+xml" href="https://dev.to/feed/techgoddess"/>
    <language>en</language>
    <item>
      <title>Creating a calculator with HTML, CSS and Javascript</title>
      <dc:creator>Promise Omoigui</dc:creator>
      <pubDate>Mon, 17 Jul 2023 14:32:50 +0000</pubDate>
      <link>https://dev.to/techgoddess/creating-a-calculator-with-html-css-and-javascript-3pcl</link>
      <guid>https://dev.to/techgoddess/creating-a-calculator-with-html-css-and-javascript-3pcl</guid>
      <description>&lt;p&gt;In this post, we would look at how to create a calculator and what you need to create it. Don't worry you don't have to be a mathematical guru to make this work. All you just need is a basic understanding of HTML, CSS and a little bit of Javascript.&lt;br&gt;
In fact having no knowledge of Javascript at all is completely okay as we would not need a script file. &lt;br&gt;
Now let's get started.&lt;br&gt;
We create our index.html file and using emmet abbreviation come up with the header tags and things necessary.&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;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="stylesheet" href="style.css"&amp;gt;
&amp;lt;title&amp;gt; Calculator &amp;lt;/title&amp;gt;
&amp;lt;/head&amp;gt;
&amp;lt;body&amp;gt;
&amp;lt;/body&amp;gt;
&amp;lt;/html&amp;gt;

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

&lt;/div&gt;



&lt;p&gt;Having gotten the above, we can start coding our calculator. Our calculator would be contained inside two divs. For this calculator we would be using a form.&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 classname="container"&amp;gt;
&amp;lt;div classname="calc"&amp;gt;
&amp;lt;form name="calculator"&amp;gt;
&amp;lt;/form&amp;gt;
&amp;lt;/div&amp;gt;
&amp;lt;/div&amp;gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;After creating the layout of our calculator we can start filling it in with the necessary tags. First off we create an input tag with a placeholder. This input tag is where our calculations would be displayed. We would give it a class so that we can style it and an id so that we can target this particular input as we would be needing it later. We would also give it a readonly attribute so as to make our input field uneditable by the user.&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 classname="container"&amp;gt;
&amp;lt;div classname="calc"&amp;gt;
&amp;lt;form name="calculator"&amp;gt;
    &amp;lt;input type="text" class="btn" id="display" placeholder="0" readonly&amp;gt;
&amp;lt;br&amp;gt;
&amp;lt;/form&amp;gt;
&amp;lt;/div&amp;gt;
&amp;lt;/div&amp;gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;After doing this we would give our calculator numbers and basic arithmetic operators. We also go with an input tag but in this case instead of giving it a type of text we would give it a type of button because we want our numbers to look like a button. We also give a value with the number or operator we would want to appear on our screen.  The &lt;br&gt; tag is used so that we can end that line and go to the other line.&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 classname="container"&amp;gt;
&amp;lt;div classname="calc"&amp;gt;
&amp;lt;form name="calculator"&amp;gt;
    &amp;lt;input type="text" class="btn" id="display" placeholder="0" readonly&amp;gt;
&amp;lt;br&amp;gt;
&amp;lt;input type="button" class="button" value="7"&amp;gt;
&amp;lt;input type="button" class="button" value="8"&amp;gt;
&amp;lt;input type="button" class="button" value="9"&amp;gt;
&amp;lt;input type="button" class="button mathbutton" value="+"&amp;gt;

&amp;lt;br&amp;gt;
&amp;lt;input type="button" class="button" value="4"&amp;gt;
&amp;lt;input type="button" class="button" value="5"&amp;gt;
&amp;lt;input type="button" class="button" value="6"&amp;gt;
&amp;lt;input type="button" class="button" value="-"&amp;gt;
&amp;lt;br&amp;gt;

&amp;lt;input type="button" class="button" value="1"&amp;gt;
&amp;lt;input type="button" class="button" value="2"&amp;gt;
&amp;lt;input type="button" class="button" value="3"&amp;gt;
&amp;lt;input type="button" class="button" value="×"&amp;gt;
&amp;lt;br&amp;gt;

&amp;lt;input type="button" class="button" value="C"&amp;gt;
&amp;lt;input type="button" class="button" value="0"&amp;gt;
&amp;lt;input type="button" class="button" value="/"&amp;gt;
&amp;lt;input type="button" class="button" value="="&amp;gt;

&amp;lt;/form&amp;gt;
&amp;lt;/div&amp;gt;
&amp;lt;/div&amp;gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;With this we have done the basic structure for our calculator. We just need to make it functioning and this is where a little bit of Javascript comes in. We don't need to add a script file all we need to do is just to add a line of code to each input tag which is the onclick function. &lt;br&gt;
The onclick property is an event handler that specifies the action to be taken when the element associated with it is clicked. &lt;br&gt;
The function 'calculator.display.value' refers to the value displayed on the calculator's display.&lt;br&gt;
The '+=' concatenates the current value on display with any string added to it. In other words it appends the string to the existing value on display so that when an input button is clicked, the action will update the calculator's display by appending the associated number to the existing value.&lt;br&gt;
The property 'eval' is used to calculate the numbers.&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 classname="container"&amp;gt;
&amp;lt;div classname="calc"&amp;gt;
&amp;lt;form name="calculator"&amp;gt;
    &amp;lt;input type="text" class="btn" id="display" placeholder="0" readonly&amp;gt;
&amp;lt;br&amp;gt;
&amp;lt;input type="button" class="button" value="7" onclick="calculator.display.value += '7' "&amp;gt;
&amp;lt;input type="button" class="button" value="8" onclick="calculator.display.value += '8' "&amp;gt;
&amp;lt;input type="button" class="button" value="9" onclick="calculator.display.value += '9' "&amp;gt;
&amp;lt;input type="button" class="button mathbutton" value="+" onclick="calculator.display.value += '+' "&amp;gt;

&amp;lt;br&amp;gt;
&amp;lt;input type="button" class="button" value="4" onclick="calculator.display.value += '4' "  &amp;gt;
&amp;lt;input type="button" class="button" value="5" onclick="calculator.display.value += '5' "&amp;gt;
&amp;lt;input type="button" class="button" value="6" onclick="calculator.display.value += '6' "&amp;gt;
&amp;lt;input type="button" class="button" value="-" onclick="calculator.display.value += '-' "  &amp;gt;
&amp;lt;br&amp;gt;

&amp;lt;input type="button" class="button" value="1" onclick="calculator.display.value += '1' " &amp;gt;
&amp;lt;input type="button" class="button" value="2"  onclick="calculator.display.value += '2' "&amp;gt;
&amp;lt;input type="button" class="button" value="3" onclick="calculator.display.value += '3' " &amp;gt;
&amp;lt;input type="button" class="button" value="*" onclick="calculator.display.value += '*' " &amp;gt;
&amp;lt;br&amp;gt;

&amp;lt;input type="button" class="button" value="C"  onclick="calculator.display.value += ' ' " &amp;gt;
&amp;lt;input type="button" class="button" value="0" onclick="calculator.display.value += '0' "&amp;gt;
&amp;lt;input type="button" class="button" value="/"onclick="calculator.display.value += '/' " &amp;gt;
&amp;lt;input type="button" class="button" value="="   onclick="calculator.display.value= eval(calculator.display.value)"&amp;gt;

&amp;lt;/form&amp;gt;
&amp;lt;/div&amp;gt;
&amp;lt;/div&amp;gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Now your calculator is ready. You can style it however you want. Thanks for reading and Happy Coding!&lt;/p&gt;

&lt;p&gt;View Full Code here:&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;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="stylesheet" href="style.css"&amp;gt;
&amp;lt;title&amp;gt; Calculator &amp;lt;/title&amp;gt;
&amp;lt;/head&amp;gt;
&amp;lt;body&amp;gt;
&amp;lt;div classname="container"&amp;gt;
&amp;lt;div classname="calc"&amp;gt;
&amp;lt;form name="calculator"&amp;gt;
    &amp;lt;input type="text" class="btn" id="display" placeholder="0" readonly&amp;gt;
&amp;lt;br&amp;gt;

&amp;lt;input type="button" class="button" value="7" onclick="calculator.display.value += '7' "&amp;gt;
&amp;lt;input type="button" class="button" value="8" onclick="calculator.display.value += '8' "&amp;gt;
&amp;lt;input type="button" class="button" value="9" onclick="calculator.display.value += '9' "&amp;gt;
&amp;lt;input type="button" class="button mathbutton" value="+" onclick="calculator.display.value += '+' "&amp;gt;

&amp;lt;br&amp;gt;
&amp;lt;input type="button" class="button" value="4" onclick="calculator.display.value += '4' "  &amp;gt;
&amp;lt;input type="button" class="button" value="5" onclick="calculator.display.value += '5' "&amp;gt;
&amp;lt;input type="button" class="button" value="6" onclick="calculator.display.value += '6' "&amp;gt;
&amp;lt;input type="button" class="button" value="-" onclick="calculator.display.value += '-' "  &amp;gt;
&amp;lt;br&amp;gt;

&amp;lt;input type="button" class="button" value="1" onclick="calculator.display.value += '1' " &amp;gt;
&amp;lt;input type="button" class="button" value="2"  onclick="calculator.display.value += '2' "&amp;gt;
&amp;lt;input type="button" class="button" value="3" onclick="calculator.display.value += '3' " &amp;gt;
&amp;lt;input type="button" class="button" value="*" onclick="calculator.display.value += '*' " &amp;gt;
&amp;lt;br&amp;gt;

&amp;lt;input type="button" class="button" value="C"  onclick="calculator.display.value += ' ' " &amp;gt;
&amp;lt;input type="button" class="button" value="0" onclick="calculator.display.value += '0' "&amp;gt;
&amp;lt;input type="button" class="button" value="/"onclick="calculator.display.value += '/' " &amp;gt;
&amp;lt;input type="button" class="button" value="="   onclick="calculator.display.value= eval(calculator.display.value)"&amp;gt;

&amp;lt;/form&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;



</description>
      <category>webdev</category>
      <category>beginners</category>
      <category>programming</category>
      <category>html</category>
    </item>
    <item>
      <title>React Hook Form Validation with Yup.</title>
      <dc:creator>Promise Omoigui</dc:creator>
      <pubDate>Mon, 10 Jul 2023 08:19:19 +0000</pubDate>
      <link>https://dev.to/techgoddess/react-hook-form-validation-with-yup-he2</link>
      <guid>https://dev.to/techgoddess/react-hook-form-validation-with-yup-he2</guid>
      <description>&lt;p&gt;React is a Javascript framework which throughout the years has gotten some buzz. And today we would looking at validating react-hook-forms with yup.&lt;/p&gt;

&lt;p&gt;First off, you have to open your terminal and create your react app.&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;npx-create-react-app .
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;This is to create a react app in the directory you are.&lt;/p&gt;

&lt;p&gt;After creating your react app, you can start installing the dependencies we would be using for this tutorial.&lt;/p&gt;

&lt;p&gt;Still in your terminal run&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;npm install react-hook-form yup

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

&lt;/div&gt;



&lt;p&gt;When you do this the dependencies would start installing. After being installed, you can run your react app by simply writing npm start.&lt;/p&gt;

&lt;p&gt;On your localhost 3000, your react app should get started.&lt;br&gt;
Now you delete some files and clear it all up to start afresh.&lt;/p&gt;

&lt;p&gt;Create a form.js file in your file use rfce(react functional export component)and it will automatically create a React component for you.&lt;br&gt;
In your app.js import the form component and start coding!&lt;/p&gt;

&lt;p&gt;Now let's create our form.&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;return (
&amp;lt;form&amp;gt;
     &amp;lt;input type="text" placeholder="Enter your full name...." /&amp;gt;
     &amp;lt;input type="email" placeholder="Enter your email...." /&amp;gt;
     &amp;lt;input type="password" placeholder="Enter Password...." /&amp;gt;
     &amp;lt;input type="password" placeholder="Confirm password...." /&amp;gt;
&amp;lt;input type="submit"/&amp;gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Style the form to your taste and then we can start the validation.&lt;br&gt;
Now we import useForm from 'react-hook-form.&lt;/p&gt;

&lt;p&gt;useForm is a hook we can use to generate a lot of different functionality related to the form.&lt;/p&gt;

&lt;p&gt;After importing the hook we use it like this👇&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;const {register, handleSubmit } = useForm();

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

&lt;/div&gt;



&lt;p&gt;HandleSubmit is a function we would call whenever the form is submitted so let's create the function but in order for it to work we would have to create another function which will be the one we would write the code to handle submission.&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;const onSubmit = (data) =&amp;gt; {
console.log("data")

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

&lt;/div&gt;



&lt;p&gt;Now we would pass it to our form. The register function as seen below  is used to tell react-hook-form which input you want to be part of the validation.&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;form onSubmit={handleSubmit(onSubmit)}&amp;gt;
     &amp;lt;input type="text" placeholder="Enter your full name...." {...register("name")} /&amp;gt;
     &amp;lt;input type="email" placeholder="Enter your email...."   {...register("email")}/&amp;gt;
     &amp;lt;input type="password" placeholder="Enter Password...."  {...register("password")}/&amp;gt;
     &amp;lt;input type="password" placeholder="Confirm password...."   {...register("confirmPassword")} /&amp;gt;
&amp;lt;input type="submit"/&amp;gt;


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

&lt;/div&gt;



&lt;p&gt;Now we start the validation using yup. First off, we import yup.&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;import * as yup from 'yup'
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;After importing yup we create a schema&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;const schema = yup.object().shape({
name: yup.string().required(),
email: yup.string().email().required(),
password: yup.string().min(4).max(20).required,
confirmPassword: yup.string(). oneOf([yup.ref("password"), null]).required(),
});

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

&lt;/div&gt;



&lt;p&gt;With this we've specified how we want our input to be and if any of the requirements is left missing the form won't submit. There are other things you can do with yup you can read its documentation &lt;a href="https://www.npmjs.com/package/yup"&gt;here&lt;/a&gt;.&lt;/p&gt;

&lt;p&gt;And with this, we've come to the end of the tutorial.&lt;br&gt;
Thank you and Happy Coding!&lt;/p&gt;

&lt;p&gt;Full code👇&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;import { useForm } from "react-hook-form";
import * as yup from "yup"
function App() {
const {register, handleSubmit } = useForm();

const schema = yup.object().shape({
name: yup.string().required(),
email: yup.string().email().required(),
password: yup.string().min(4).max(20).required,
confirmPassword: yup.string(). oneOf([yup.ref("password"), null]).required(),
});


const onSubmit = (data) =&amp;gt; {
console.log("data")

return (
&amp;lt;form onSubmit={handleSubmit(onSubmit)}&amp;gt;
     &amp;lt;input type="text" placeholder="Enter your full name...." {...register("name")} /&amp;gt;
     &amp;lt;input type="email" placeholder="Enter your email...."   {...register("email")}/&amp;gt;
     &amp;lt;input type="password" placeholder="Enter Password...."  {...register("password")}/&amp;gt;
     &amp;lt;input type="password" placeholder="Confirm password...."   {...register("confirmPassword")} /&amp;gt;
&amp;lt;input type="submit"/&amp;gt;
);
}

export default App;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



</description>
      <category>react</category>
      <category>webdev</category>
      <category>frontend</category>
      <category>form</category>
    </item>
    <item>
      <title>Are you ready to bid farewell to Gmail?: Google sets to delete inactive Gmail accounts.</title>
      <dc:creator>Promise Omoigui</dc:creator>
      <pubDate>Fri, 02 Jun 2023 09:40:49 +0000</pubDate>
      <link>https://dev.to/techgoddess/are-you-ready-to-bid-farewell-to-gmail-google-sets-to-delete-inactive-gmail-accounts-5h44</link>
      <guid>https://dev.to/techgoddess/are-you-ready-to-bid-farewell-to-gmail-google-sets-to-delete-inactive-gmail-accounts-5h44</guid>
      <description>&lt;p&gt;Launched in 2004 under the name Gmail, it has garnered over 1.8 billion users worldwide which single-handedly makes it the world's most popular email system. &lt;br&gt;
Gmail has been used by many to send professional messages, also used as an avenue for sending newsletter and even used by schools to send out information to their students. &lt;br&gt;
So why should you get ready to bid farewell to Gmail?&lt;br&gt;
Recently, Google announced its intention to delete millions of email account.&lt;br&gt;
A lots of accounts are created, used once and then never used again. And dormant emails are easy targets for fraud and spams.&lt;br&gt;
So with the intent of  strengthening user's security and freeing up space, Google has decided to delete millions of emails.&lt;br&gt;
Hey don't fret you won't say goodbye to your gmail if it has been in use for the last two years. The targeted accounts for deleting are those which has not been used in the last two years. If you are among this category and you aren't ready to say goodbye to your gmail just yet, then  you are in luck. Just follow any of this steps.&lt;/p&gt;

&lt;h2&gt;
  
  
  &lt;strong&gt;Not yet ready to say Goodbye?: What to do.&lt;/strong&gt;
&lt;/h2&gt;

&lt;ul&gt;
&lt;li&gt;You can get on your mobile device or system, log in to your gmail and send an email.&lt;/li&gt;
&lt;li&gt;You can use your gmail to connect with any application that allows for it. (E.g Youtube, Google and Playstore).&lt;/li&gt;
&lt;li&gt;You can also use your gmail to login to your inbox and access your drive.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;Also Read: &lt;a href="https://medium.com/@omoiguipromise02/no-more-auto-correct-mistake-with-whatsapp-whatsapp-to-allow-editing-messages-14151e414e8d"&gt;No more auto correct mistake with WhatsApp: WhatsApp to allow editing messages.&lt;/a&gt;&lt;/p&gt;

</description>
      <category>tech</category>
      <category>gmail</category>
      <category>google</category>
    </item>
    <item>
      <title>Creating a Netflix clone using HTML and CSS</title>
      <dc:creator>Promise Omoigui</dc:creator>
      <pubDate>Sun, 26 Mar 2023 18:31:01 +0000</pubDate>
      <link>https://dev.to/techgoddess/creating-a-netflix-clone-using-html-and-css-14pj</link>
      <guid>https://dev.to/techgoddess/creating-a-netflix-clone-using-html-and-css-14pj</guid>
      <description>&lt;p&gt;Just from the heading, I know you are pumped. Yes! Today we would be creating the Netflix clone just using HTML and CSS.&lt;br&gt;
This should be the end result.&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%2Fuploads%2Farticles%2F0wmiu99szkbbpgvoaxw1.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%2F0wmiu99szkbbpgvoaxw1.PNG" alt="Netflix Clone"&gt;&lt;/a&gt;&lt;br&gt;
You ready? Then let’s get started. &lt;br&gt;
First off we start with creating our folder, after creating our folder we open it in our IDE in my case I’m using VSCode.&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%2Fuploads%2Farticles%2Fl0vz7ops1strmtubavcx.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%2Fl0vz7ops1strmtubavcx.PNG"&gt;&lt;/a&gt;&lt;br&gt;
As you can see in the picture above, I’ve created my index.html and my style.css. You should do same.&lt;br&gt;
Once you have done it,  you type in exclamation mark and press enter it will be auto-completed because of the emmet abbreviation. Once you have done that, you should see this&lt;br&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%2Fshg6wiexwvrg9cj3vx8t.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%2Fshg6wiexwvrg9cj3vx8t.PNG"&gt;&lt;/a&gt;&lt;br&gt;
In mine, I’ve already linked my CSS to my html. You should do same. Having done that, let’s start coding.&lt;br&gt;
Before we start, let’s create a folder where we can store our images. To get the images so that you can follow along here’s the github link(&lt;a href="https://github.com/Reyghosa/Netflix-Clone.git" rel="noopener noreferrer"&gt;https://github.com/Reyghosa/Netflix-Clone.git&lt;/a&gt;). You can find the images used there.&lt;br&gt;
First off, we start by targeting our universal class in CSS using asterisk(*).  We give it the following styling &lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;

  padding: 0;
  margin: 0;
  box-sizing: border-box;


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

&lt;/div&gt;

&lt;p&gt;This is how it should look&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%2Fuploads%2Farticles%2F7xiieq1rze57gz26t750.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%2F7xiieq1rze57gz26t750.PNG"&gt;&lt;/a&gt;&lt;br&gt;
Having done that, the next thing we need is our background image. You target your body in style.css and use a background with an image as its value. &lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;

body{
    background: url('/Images/background.jpg');
}


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

&lt;/div&gt;

&lt;p&gt;Now when you open up your page on Liveserver it should look 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%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fib678hcda2hvquourn33.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%2Fib678hcda2hvquourn33.PNG" alt="Image description"&gt;&lt;/a&gt;&lt;br&gt;
We create a div with the class of Container because this is the div that would contain everything. Inside our container div we create another div with a class of header. This div would contain our Netflix Logo and a button with the value of Login. 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%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Ff6hau7pvnci9675uftug.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%2Ff6hau7pvnci9675uftug.PNG"&gt;&lt;/a&gt;&lt;br&gt;
If you have followed along correctly until now then your webpage should look 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%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2F6jsr34apnbp54yg5lurr.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%2F6jsr34apnbp54yg5lurr.PNG" alt="Image description"&gt;&lt;/a&gt;&lt;br&gt;
Now let’s style it. We start off by styling our container div first. Give it a height and width of 100view-port height and 100view-port width respectively.  In the body we add a position of absolute while we add a position of relative to our container div and a background-color of rgba(0, 0, 0 0.5). Check the Image below&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%2Fuploads%2Farticles%2Fwxyxlmb0b4h24yvu06bp.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%2Fwxyxlmb0b4h24yvu06bp.PNG"&gt;&lt;/a&gt;&lt;br&gt;
We are doing this because we are trying to make an overlay on the background to give it a kind of dark view. &lt;br&gt;
If you have done it correctly your site should look 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%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2F74yk4y230efoxuzpppdy.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%2F74yk4y230efoxuzpppdy.PNG" alt="Image description"&gt;&lt;/a&gt;&lt;br&gt;
As you can see in the snippet above we have a scroll which we don’t want. So to take care of that we simply add this line of code&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;

body::-webkit-scrollbar{
display: none;
}



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

&lt;/div&gt;

&lt;p&gt;This line should take care of that. Now we can focus on styling our logo and login button.&lt;br&gt;
We give our header the following styling. Check image below.&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%2Fuploads%2Farticles%2Fqpxxp15pnox0pf8ty00k.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%2Fqpxxp15pnox0pf8ty00k.PNG" alt="Header Styling"&gt;&lt;/a&gt;&lt;br&gt;
Now we move on to style our login button. We add a class of login-btn to our login button then we can target it to style 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%2Fuploads%2Farticles%2Fkioq6lgixjdoapy58uzp.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%2Fkioq6lgixjdoapy58uzp.PNG" alt="Login Button Styling"&gt;&lt;/a&gt;&lt;br&gt;
This is how your site should look like now&lt;br&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%2Fl2y2c7ocqpvt83tcwd58.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%2Fl2y2c7ocqpvt83tcwd58.PNG"&gt;&lt;/a&gt;&lt;br&gt;
Now we are done with styling our header it’s time to go to the text.&lt;br&gt;
To do that, create a div with a class of text-container let it be nested inside the div with the class of container but outside the div with the class of header. Create an h1, h4 and h5 tag with the text. Check Image below&lt;br&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%2Fd7fjotvizoyaeughnt7k.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%2Fd7fjotvizoyaeughnt7k.PNG"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;As you can see in the image above, I also created another div that contains our Input and get started button. Now let’s get started with styling. &lt;br&gt;
First off, we style our div with the class of text-container because it contains our texts. We give our text-container a color of white so that the text can be visible and also add the following styles. Check Image below&lt;br&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%2Fqsl94joky6bswiwfoeno.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%2Fqsl94joky6bswiwfoeno.PNG"&gt;&lt;/a&gt;&lt;br&gt;
As you can see in mine, I gave it a gap of 1rem this is because I want to separate each header tag from the other.&lt;br&gt;
After styling the text-container div we move on to target each header tag and style them by giving it different font-sizes. Check Image below&lt;br&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%2Filxjthce3obbm1e7lciu.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%2Filxjthce3obbm1e7lciu.PNG"&gt;&lt;/a&gt;&lt;br&gt;
As you can see our h1 tag is having a line-height this is to put some line spacing in between the h1 text.&lt;br&gt;
Our Netflix Clone is taking shape already. Hope your text section looks like this too.&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%2Fuploads%2Farticles%2Fptce0a583xc67ctv8uya.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%2Fptce0a583xc67ctv8uya.PNG" alt="Netflix clone text section"&gt;&lt;/a&gt;&lt;br&gt;
After that we create a div with the class of form this div is not placed inside the text-container div but outside it. Take note the div should be contained in the container div just like this. Check Image below&lt;br&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%2Fxcrd7c3jm866j8c8rirs.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%2Fxcrd7c3jm866j8c8rirs.PNG"&gt;&lt;/a&gt;&lt;br&gt;
As you can see, an input tag has been created with a type of email and a placeholder. Any value you give the placeholder is what would appear inside the input box. Inside that div a get started button was also created and outside the div a login button was created. You can go back and check very well so as not to get confused or mix it up. That’s all for the HTML and as you can see we used not more than 30 lines or at least I did. &lt;br&gt;
Now let’s get straight to styling it. Don’t worry we are almost done and if you have made it this far then kudos to you. Let’s get to styling. First we would style the div with the class of form that contains the input and the get started button. Check Image below&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%2Fuploads%2Farticles%2Flyiy0395tp2xx2lqfdg8.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%2Flyiy0395tp2xx2lqfdg8.PNG" alt="Form styling"&gt;&lt;/a&gt;&lt;br&gt;
It’s just a simple styling but notice we gave it a margin-left. Right now, it might not look like much but later on you would see why we did so. After styling our form, let’s move to our input.&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%2Fuploads%2Farticles%2Fc50cn5mvr15iv3izb3mc.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%2Fc50cn5mvr15iv3izb3mc.PNG" alt="Input styling"&gt;&lt;/a&gt;&lt;br&gt;
Let me explain what the input:focus is for. If you notice without  the input:focus if you enter the input field there is a black border around it and we don’t want that so that’s why we use the input:focus and give it an outline of none.&lt;br&gt;
Just few steps more techies and our Netflix clone would be created. Let’s style our buttons.&lt;br&gt;
We would start with our getstarted-btn and we would give it the following styles. Check Image below&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%2Fuploads%2Farticles%2F5pio0ns2jqz81y4o8224.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%2F5pio0ns2jqz81y4o8224.PNG" alt="Image description"&gt;&lt;/a&gt;&lt;br&gt;
Now when you open it on your Liveserver. It should like this. Check Image below&lt;br&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%2Fqs8yudotoqazfto80woc.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%2Fqs8yudotoqazfto80woc.PNG"&gt;&lt;/a&gt;&lt;br&gt;
Now without the margin-left in our form container our input field and get started button would not have been positioned well to how we really want it to be.&lt;br&gt;
Now to the last part.&lt;br&gt;
Styling our downlogin-btn. It’s very easy all you need to do is to copy and paste the login button styles. We should have named it same classes but we didn’t because we need to add two extra lines of code to our downlogin-btn to make it look good and position it to where it ought to be Just add these two lines of code.&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;

 margin-left: 850px;
 margin-top: 20px;


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

&lt;/div&gt;

&lt;p&gt;And with that we have created our Netflix clone which should come out 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%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fp9bvi12wbxneyc6eyhwz.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%2Fp9bvi12wbxneyc6eyhwz.PNG" alt="Netflix Clone"&gt;&lt;/a&gt;&lt;br&gt;
Well-done we just created a Netflix-clone using HTML and CSS. &lt;br&gt;
You can follow me for more insights on Front-end development. If you have any questions You can ask in the comment section and I will be sure to leave a reply. Don’t forget to leave a like If you found this useful you can also share for others to benefit. Do make sure you follow me for more. &lt;/p&gt;

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