<?xml version="1.0" encoding="UTF-8"?><rss xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:atom="http://www.w3.org/2005/Atom" version="2.0"><channel><title><![CDATA[Untitled Publication]]></title><description><![CDATA[Untitled Publication]]></description><link>https://riike.hashnode.dev</link><generator>RSS for Node</generator><lastBuildDate>Tue, 17 Nov 2026 03:20:06 GMT</lastBuildDate><atom:link href="https://riike.hashnode.dev/rss.xml" rel="self" type="application/rss+xml"/><language><![CDATA[en]]></language><ttl>60</ttl><item><title><![CDATA[Easy Tutorial: Setting Up ReactJs with Vite, TypeScript, and Tailwind CSS]]></title><description><![CDATA[Follow this step-by-step tutorial article to learn how to set up a ReactJS project with Vite, TypeScript, and TailwindCss.]]></description><link>https://riike.hashnode.dev/easy-tutorial-setting-up-reactjs-with-vite-typescript-and-tailwind-css</link><guid isPermaLink="true">https://riike.hashnode.dev/easy-tutorial-setting-up-reactjs-with-vite-typescript-and-tailwind-css</guid><category><![CDATA[React]]></category><category><![CDATA[TypeScript]]></category><category><![CDATA[vite]]></category><category><![CDATA[Tailwind CSS]]></category><category><![CDATA[Technical writing ]]></category><category><![CDATA[Web Development]]></category><category><![CDATA[Tutorial]]></category><dc:creator><![CDATA[Mutiat Adepoju]]></dc:creator><pubDate>Fri, 10 Jan 2025 17:00:49 GMT</pubDate><enclosure url="https://cdn.hashnode.com/res/hashnode/image/upload/v1736507375419/3cf541d0-016f-49f1-8f3d-03333972ea7e.jpeg" length="0" type="image/jpeg"/><content:encoded><![CDATA[<p>Setting up a <a target="_blank" href="https://react.dev/">React.js</a> project with <a target="_blank" href="https://vite.dev/">Vite</a> and <a target="_blank" href="https://tailwindcss.com/">Tailwind CSS</a> can be simpler than you think. This step-by-step guide will help you build a fast and modern React app with ease. By the end of this article, you will have a fully functional React app that looks great and runs smoothly.</p>
<h2 id="heading-why-choose-vite-and-tailwind-css"><strong>Why Choose Vite and Tailwind CSS?</strong></h2>
<ul>
<li><p><a target="_blank" href="https://vite.dev/"><strong>Vite</strong></a> <strong>is</strong> a modern build tool. It provides faster startup and development speeds than "Create React App.”</p>
</li>
<li><p><a target="_blank" href="https://tailwindcss.com/"><strong>Tailwind CSS</strong></a> is a utility-first CSS framework that lets you build custom designs without writing much custom CSS.</p>
</li>
</ul>
<p>Combining these two tools with React creates a fast and efficient development environment, perfect for beginners and experienced developers.</p>
<h2 id="heading-prerequisites"><strong>Prerequisites</strong></h2>
<p>Before you begin, have a text editor and a web browser ready. In this tutorial, I used <a target="_blank" href="https://code.visualstudio.com/download"><strong>Visual Studio Code</strong></a> <strong>(</strong><a target="_blank" href="https://code.visualstudio.com/"><strong>VSCode</strong></a><strong>)</strong> as the editor. To get started, ensure you install the following tools :</p>
<ul>
<li><p><strong>Node.js</strong> (version 16 or later). If you don’t have it yet, download it from <a target="_blank" href="https://nodejs.org/">Node.js</a>.</p>
</li>
<li><p>A <strong>code editor</strong>, such as <a target="_blank" href="https://code.visualstudio.com/">Visual Studio Code</a>.</p>
</li>
<li><p><strong>Basic knowledge of</strong> <a target="_blank" href="https://developer.mozilla.org/en-US/docs/Learn_web_development/Getting_started/Your_first_website/Adding_interactivity"><strong>JavaScript</strong></a> <strong>and</strong> <a target="_blank" href="https://react.dev/"><strong>React</strong></a>.</p>
</li>
</ul>
<p>Now that you have these tools, follow the steps below to create your React app with Vite, TypeScript and Tailwind CSS!</p>
<h2 id="heading-step-1-create-a-reactjs-project-with-vite"><strong>Step 1: Create a React.js Project with Vite</strong></h2>
<ol>
<li><p><strong>Open your terminal</strong></p>
<p> <img src="https://cdn.hashnode.com/res/hashnode/image/upload/v1736500745134/f1d24b82-92d0-4094-b4d7-1262d5a1a767.jpeg" alt="Terminal" class="image--center mx-auto" /></p>
</li>
<li><p><strong>Run this command to create a new React project using Vite</strong>:<br /> ```</p>
</li>
</ol>
<p><code>npm create vite@latest my-react-app --template react</code></p>
<p>```</p>
<p>Replace my-react-app with your desired project name, for example, react-project. The command will look like this:</p>
<p>```</p>
<p><code>npm create vite@latest react-project --template react</code></p>
<p>```</p>
<p><img src="https://cdn.hashnode.com/res/hashnode/image/upload/v1736501065962/1ed11564-50e2-4057-84d8-ccdbaf44d89b.jpeg" alt="Create new project command" class="image--center mx-auto" /></p>
<p>3. After running the command, you will see a prompt in your terminal asking you to select the framework. Use the arrow keys to ‘<strong>React’</strong> and press Enter:</p>
<p><img src="https://cdn.hashnode.com/res/hashnode/image/upload/v1736501165125/6c8f7571-0ce2-4c60-a42f-fa3965f0101b.jpeg" alt="Framework prompt" class="image--center mx-auto" /></p>
<p>4. Next, a prompt will display to select a variant. Use the arrow keys to ‘<strong>TypeScript’</strong> and press Enter. This tutorial uses TypeScript, but you can choose a different variant if you prefer:</p>
<p><img src="https://lh7-rt.googleusercontent.com/docsz/AD_4nXfuzU-mk_60mX8bpKsKGGne1VsVJ3B_FcluqFUG2nDtoWprG0gl5oZyXFg5h4TNAMb7ZY2b7j4GmscQdi59eiysL7x-FV0SKiNChQPSfcejiDkqBceqGvnImOuuzuRaxnptpPx3Hw?key=ObD1WCnKNcCDQUwVCgIfrlwu" alt="Variant prompt" class="image--center mx-auto" /></p>
<h2 id="heading-step-2-install-dependencies"><strong>Step 2: Install Dependencies</strong></h2>
<ol>
<li>Change into the project directory by running the following command</li>
</ol>
<p>```</p>
<p><code>cd react-project</code></p>
<p>```</p>
<p>2) Install the project dependencies using this command</p>
<p>```</p>
<p><code>npm install</code></p>
<p>```</p>
<p>It will take a few minutes for your React.js project to set up with <a target="_blank" href="https://vite.dev/">Vite</a>.</p>
<p><img src="https://lh7-rt.googleusercontent.com/docsz/AD_4nXclNwnLvlSZxwMmYl8InKNZNRv-5a5eD1PuGSg3lcdfsC6tb4Wq-F9svlbNIrH4v4T_jAEOnPSql6gxqeWlzO0yufALbQdmbfGCQHeh6KY4S2IWkYD-IsnpmUBpf2ByT6eYYE6UyA?key=ObD1WCnKNcCDQUwVCgIfrlwu" alt="Install Reactjs dependencies" class="image--center mx-auto" /></p>
<h2 id="heading-step-3-install-tailwind-css"><strong>Step 3: Install Tailwind CSS</strong></h2>
<ol>
<li>Next, use this command to install Tailwind CSS and its dependencies</li>
</ol>
<p>```</p>
<p><code>npm install -D tailwindcss postcss autoprefixer</code></p>
<p>```</p>
<p>This will install Tailwind CSS packages and their dependencies.</p>
<p><img src="https://lh7-rt.googleusercontent.com/docsz/AD_4nXenyYI79hWeypt7GzytAVTkOoDkQJLcjaFXIqd_ETHqamvZdnWUJIXy_qbZaI71Y3y3tI43X3yGSx-BECfs-65i5EKMp1a50UH0Fm6LCj6FrACapkP3-46z2WaXdn1XSrlfc5-TaQ?key=ObD1WCnKNcCDQUwVCgIfrlwu" alt="Taiwindcss command" class="image--center mx-auto" /></p>
<p>2. Run this command to generate the Tailwind configuration files:  </p>
<p>```</p>
<p><code>npx tailwindcss init -p</code></p>
<p>```</p>
<p>This command generates the Tailwind configuration files, which include:</p>
<ul>
<li><p><strong>tailwind.config.js</strong>: This file configures Tailwind CSS, like specifying where your templates are located and adding custom settings if necessary.</p>
</li>
<li><p><strong>postcss.config.js</strong>: This file processes Tailwind CSS styles during the build process.</p>
</li>
</ul>
<p><img src="https://cdn.hashnode.com/res/hashnode/image/upload/v1736502634796/f7507985-de2c-42d7-8644-d9fc39c4535b.jpeg" alt="Tailwind configuration" class="image--center mx-auto" /></p>
<h2 id="heading-step-4-configure-tailwind-css"><strong>Step 4: Configure Tailwind CSS</strong></h2>
<ol>
<li>Open the tailwind.config.js file.</li>
</ol>
<p><img src="https://lh7-rt.googleusercontent.com/docsz/AD_4nXdI8R5JADoiylEYXcCe009sBp2lCNug30nWBC5nsDKAZQfbasUgnp_ko015oRIT-Xc0H3e40gyExUVe1jgcKZZ8ELVUwXA1Vtibspgr05JmSUyO_v2JkmHNNyZlaW3I1wUwCsph-A?key=ObD1WCnKNcCDQUwVCgIfrlwu" alt="Tailwind config file" class="image--center mx-auto" /></p>
<ol start="2">
<li>Update the content property with: </li>
</ol>
<p>```</p>
<p><code>"./index.html", "./src/**/*.{js,ts,jsx,tsx}"</code></p>
<p>``` </p>
<p>This tells Tailwind to scan your files for classes and ensures it generates styles based on the classes you use in your project. It should look like this:</p>
<p><img src="https://lh7-rt.googleusercontent.com/docsz/AD_4nXdLy-wI1Zhr7Pxr1oTsxOLaocT2qpSY11XV58onggFw3n6r5A_zCrDjK-RzdJciS5fkm1qaq3M9U1tD5yKoA7CfXbSBjZ9Y5jqdTCzcqunt7r2gyZufMapwNMqu3hrWjH2L71R4DA?key=ObD1WCnKNcCDQUwVCgIfrlwu" alt="Update content property" class="image--center mx-auto" /></p>
<h2 id="heading-step-5-add-tailwind-css-to-your-project"><strong>Step 5: Add Tailwind CSS to Your Project</strong></h2>
<ol>
<li><p>Open the file src/index.css.</p>
</li>
<li><p>Add the Tailwind’s base styles, components, and utilities at the top of the existing content or remove all the existing content and add them in the index.css file:</p>
</li>
</ol>
<p>```</p>
<p>index.css</p>
<p><code>@import 'tailwindcss/base';</code></p>
<p><code>@import 'tailwindcss/components';</code></p>
<p><code>@import 'tailwindcss/utilities';</code></p>
<p>```</p>
<p><img src="https://cdn.hashnode.com/res/hashnode/image/upload/v1736503409398/9e153e17-214c-4feb-a4d1-e04f034b9be4.jpeg" alt="Tailwind base , component and utilities" class="image--center mx-auto" /></p>
<h2 id="heading-step-6-test-your-setup"><strong>Step 6: Test Your Setup</strong></h2>
<ol>
<li><p>Open the src/App.tsx file.</p>
</li>
<li><p>Replace its content with the following code to test your setup :</p>
</li>
</ol>
<p>```</p>
<p><code>export default function App() {</code></p>
<p>  <code>return (</code></p>
<p>    <code>&lt;div className="flex items-center justify-center min-h-screen bg-gray-100"&gt;</code></p>
<p>      <code>&lt;h1 className="text-4xl font-bold text-blue-600"&gt;</code></p>
<p>        <code>Welcome to React with Typescript and Tailwind CSS!</code></p>
<p>      <code>&lt;/h1&gt;</code></p>
<p>    <code>&lt;/div&gt;</code></p>
<p>  <code>);</code></p>
<p><code>}</code></p>
<p>```</p>
<p><img src="https://lh7-rt.googleusercontent.com/docsz/AD_4nXe-kVOAlzaVHt0C64PoQWNsJh7p-4XlM209KgOqadqVpZnodsAB5gBjOvjpJBHA5erombQwAZI7fbSIVg3EWszX_beSzAIlUR94ZUvlN4rGWurutDT8l4WvLZtuSo5750_IV_k1Gw?key=ObD1WCnKNcCDQUwVCgIfrlwu" alt="App.tsx content" class="image--center mx-auto" /></p>
<p>3. Finally, run this command to start the development server</p>
<p>```</p>
<p><code>npm run dev</code></p>
<p>```</p>
<p>This command will display this, </p>
<p><img src="https://lh7-rt.googleusercontent.com/docsz/AD_4nXfYmC4C05Se-Vh2XLogAQK0Aeq8hVOxXW4Zuibuzf7aVVend9P57miYqi8r70bNMy24f84OrQnHwVCeMxceuFAgbsbrVkd9PYqlaqMBwaAHqRBdtkxu3Z3HjR8z979WWCR5Xs1R_w?key=ObD1WCnKNcCDQUwVCgIfrlwu" alt="Development starter" class="image--center mx-auto" /></p>
<p>The URL (<a target="_blank" href="http://localhost:5173/">http://localhost:5173/</a>) is clickable. Click on it to open your project in the browser, or copy the URL and paste it into your browser’s address bar to view your project.</p>
<p><img src="https://lh7-rt.googleusercontent.com/docsz/AD_4nXf3y9G_j7WX0C6ZteG2RPewCxJpkfeH_v_4k_D0JN-0YY1eQsmPb-AShgtb3dc9BbWE3-ClkDZ-zBZ6b5YwBH8zAO0UH1F4bYxbXcoMsBuu-0SQP91vgKK93G6zV7gk3Jvg3DTH?key=ObD1WCnKNcCDQUwVCgIfrlwu" alt="Web browser" class="image--center mx-auto" /></p>
<h2 id="heading-conclusion"><strong>Conclusion</strong></h2>
<p>Great job! You have set up a React.js project with Vite and Tailwind CSS. Now, you can build amazing websites that are both fast and beautiful.</p>
<p>If this guide helped you, share it with your friends or anyone interested in web development. Connect with me on <a target="_blank" href="https://x.com/mutiat900">Twitter</a>, and LinkedIn for more helpful tips and resources.</p>
<h2 id="heading-further-learning"><strong>Further Learning</strong></h2>
<p>To continue your learning journey, here are some additional resources:</p>
<ul>
<li><p><a target="_blank" href="https://react.dev/learn">React Docs</a></p>
</li>
<li><p><a target="_blank" href="https://vitejs.dev/guide/">Vite Docs</a></p>
</li>
<li><p><a target="_blank" href="https://tailwindcss.com/docs">Tailwind CSS Docs</a></p>
</li>
<li><p><a target="_blank" href="https://www.youtube.com/results?search_query=react+js+beginner">Free React Courses on YouTube</a></p>
</li>
</ul>
<p>Keep building and happy coding!</p>
<h2 id="heading-link-to-source-code"><strong>Link to Source Code</strong></h2>
<p>Check the source code on my <a target="_blank" href="https://github.com/Rike12/REact-project/">GitHub repository</a> to see the full project structure or to clone a pre-configured version of this setup.</p>
<p>You can fork the repository or download the project to get started quickly.</p>
<h2 id="heading-error-handling-common-errors-and-troubleshooting"><strong>Error Handling: Common Errors and Troubleshooting</strong></h2>
<p>As you proceed with this tutorial, you might encounter some common errors. Here are a few troubleshooting tips for beginners:</p>
<h4 id="heading-1-error-npm-command-not-found"><strong>1. Error: "npm command not found"</strong></h4>
<ul>
<li><strong>Solution</strong>: Ensure that you install <strong>Node.js</strong> correctly.  Check if you install Node.js and npm using :</li>
</ul>
<p>```</p>
<p> <code>node -v</code> </p>
<p>```</p>
<p>and </p>
<p>```</p>
<p><code>npm -v</code></p>
<p>``` </p>
<p>If not, reinstall Node.js from <a target="_blank" href="https://nodejs.org">nodejs.org</a>.</p>
<h4 id="heading-2-error-vite-is-not-recognized"><strong>2. Error: "Vite is not recognized"</strong></h4>
<ul>
<li><strong>Solution</strong>: Ensure you select the correct Vite template. If the problem persists, try reinstalling Vite with </li>
</ul>
<p>```</p>
<p><code>npm create vite@latest.</code></p>
<p>```</p>
<h4 id="heading-3-tailwind-css-not-working"><strong>3. Tailwind CSS not working</strong></h4>
<ul>
<li><strong>Solution</strong>: Check if you configured the tailwind.config.js correctly, and ensure that you have added the Tailwind imports to src/index.css. Also, make sure you've restarted the dev server after installing dependencies.</li>
</ul>
<h4 id="heading-4-the-react-development-server-not-starting"><strong>4. The React development server not starting</strong></h4>
<ul>
<li><strong>Solution</strong>: Ensure you install the project dependencies correctly by running :</li>
</ul>
<p>```</p>
<p><code>npm install</code></p>
<p>```</p>
<p>If issues persist, delete the node_modules folder and the package-lock.json file, then run</p>
<p>```<code>npm install</code> ``` again.</p>
<p>If you encounter other errors, visit the official documentation for <a target="_blank" href="https://react.dev/learn">React Docs</a>, <a target="_blank" href="https://vitejs.dev/guide/">Vite Docs</a>, and <a target="_blank" href="https://tailwindcss.com/docs">Tailwind CSS Docs</a>. Alternatively, you can reach out to me on <a target="_blank" href="https://x.com/mutiat900">Twitter</a>, <a target="_blank" href="https://www.linkedin.com/in/mutiat-adepoju/"></a>or <a target="_blank" href="https://www.linkedin.com/in/mutiat-adepoju/">LinkedIn</a>, for help.</p>
]]></content:encoded></item><item><title><![CDATA[A Comparison of ReactJS and Nextjs for Frontend Development]]></title><description><![CDATA[Have you ever wondered which frontend framework can improve your web development projects: ReactJS or Next.js? With the web constantly growing, you need to…]]></description><link>https://riike.hashnode.dev/a-comparison-of-reactjs-and-nextjs-for-frontend-development</link><guid isPermaLink="true">https://riike.hashnode.dev/a-comparison-of-reactjs-and-nextjs-for-frontend-development</guid><category><![CDATA[React]]></category><category><![CDATA[Next.js]]></category><category><![CDATA[JavaScript]]></category><category><![CDATA[javascript framework]]></category><category><![CDATA[Web Development]]></category><category><![CDATA[Hnginternship]]></category><dc:creator><![CDATA[Mutiat Adepoju]]></dc:creator><pubDate>Sat, 29 Jun 2024 14:29:37 GMT</pubDate><enclosure url="https://cdn.hashnode.com/res/hashnode/image/upload/v1719574634671/01aca07d-89ad-4810-8365-62e98dc828ee.png" length="0" type="image/jpeg"/><content:encoded><![CDATA[<h2 id="heading-introduction"><strong>Introduction</strong></h2>
<p>Have you ever wondered which frontend framework can improve your web development projects: <a target="_blank" href="https://react.dev/">ReactJS</a> or <a target="_blank" href="https://nextjs.org/">Next.j</a>s? With the web constantly growing, you need to know which of these frameworks suits your projects. In this article, I will compare the two frameworks' performance, scalability, developer experience, features such as routing, data fetching, and SEO, as well as their respective advantages, limitations, and recommended use cases. I will also share my insights and expectations towards the HNG Internship program, which starts on the 1st of July.</p>
<h2 id="heading-overview-of-reactjs-and-nextjs">Overview of ReactJS and Next.js</h2>
<h3 id="heading-reactjs">ReactJS</h3>
<p><a target="_blank" href="https://react.dev/">ReactJS</a> is a powerful <a target="_blank" href="https://www.javascript.com/">JavaScript</a> library for building dynamic user interfaces. In May 2013, <a target="_blank" href="https://web.facebook.com">Facebook</a> created it to improve the process of building user interfaces for web applications. Its component-based architecture (allows codes to be reusable). <a target="_blank" href="https://react.dev/">ReactJS</a> makes development more efficient and maintainable. <a target="_blank" href="https://legacy.reactjs.org/docs/faq-internals.html">The virtual DOM</a> and the declarative nature of it make creating interactive web applications easier.</p>
<h3 id="heading-nextjs">Next.js</h3>
<p><a target="_blank" href="https://vercel.com/">Vercel</a> developed <a target="_blank" href="https://nextjs.org/">Next.js</a> to enhance <a target="_blank" href="https://react.dev/">ReactJS</a>. Its features are:</p>
<ul>
<li><p><a target="_blank" href="https://nextjs.org/docs/pages/building-your-application/rendering/server-side-rendering">Server-Side Rendering (SSR)</a>: the web page's content renders on the server instead of the client's browser.</p>
</li>
<li><p><a target="_blank" href="https://nextjs.org/docs/pages/building-your-application/rendering/static-site-generation">Static Site Generation (SSG)</a>, and automatic code splitting: These features improve performance and developer experience, making <a target="_blank" href="https://nextjs.org/">Next.js</a> the best framework for modern web development.</p>
</li>
</ul>
<p><a target="_blank" href="https://react.dev/">ReactJS</a> is great for <a target="_blank" href="https://developer.mozilla.org/en-US/docs/Glossary/SPA">single-page applications (SPAs)</a> and projects that require high customization and flexibility. <a target="_blank" href="https://nextjs.org/">Next.js</a> is ideal for projects where performance and Search Engine Optimization <a target="_blank" href="https://developers.google.com/search/docs/fundamentals/seo-starter-guide#:~:text=SEO%E2%80%94short%20for%20search%20engine,site%20through%20a%20search%20engine.">(SEO)</a> are important, such as e-commerce sites and content-heavy platforms.</p>
<h2 id="heading-reactjs-vs-nextjs">REACTJS VS NEXT.JS</h2>
<p>In this section, I will compare <a target="_blank" href="https://react.dev/">ReactJS</a> and <a target="_blank" href="http://next.js">Next.js</a> based on their performance, scalability, routing, and data-fetching</p>
<h2 id="heading-performance">Performance</h2>
<h3 id="heading-reactjs-performance"><strong>ReactJS Performance</strong></h3>
<p><a target="_blank" href="https://react.dev/">ReactJS</a> improves the performance of web applications by using the <a target="_blank" href="https://legacy.reactjs.org/docs/faq-internals.html">virtual DOM</a>, which reduces direct manipulation of the <a target="_blank" href="https://developer.mozilla.org/en-US/docs/Web/API/Document_Object_Model">actual DOM</a>. It is advised to use additional tools and libraries like <a target="_blank" href="https://www.javatpoint.com/react-router">React Router</a>, <a target="_blank" href="https://refine.dev/blog/react-query-guide/">React Query,</a> and <a target="_blank" href="https://www.freecodecamp.org/news/an-intro-to-webpack-what-it-is-and-how-to-use-it-8304ecdc3c60/">Webpack</a> to get the best performance of ReactJS.</p>
<p>```</p>
<p>import React, { useState } from 'react';</p>
<p>function Counter() {</p>
<p>  const [count, setCount] = useState(0);</p>
<p>  return (</p>
<p>    &lt;div&gt;</p>
<p>      &lt;p&gt;You clicked {count} times&lt;/p&gt;</p>
<p>      &lt;button onClick={() =&gt; setCount(count + 1)}&gt;Click me&lt;/button&gt;</p>
<p>    &lt;/div&gt;</p>
<p>  );</p>
<p>}</p>
<p>export default Counter;</p>
<p>```</p>
<p>In the code above, the React component "<a target="_blank" href="https://contactmentor.com/react-increment-counter-hooks/">Counter</a>" uses the "<a target="_blank" href="https://react.dev/reference/react/useState">useState</a>" hook to manage the state. When you click the button, it updates the UI dynamically.</p>
<h3 id="heading-nextjs-performance"><strong>Next.js Performance</strong></h3>
<p>Next.js includes <a target="_blank" href="https://nextjs.org/docs/pages/building-your-application/rendering/server-side-rendering">SSR</a> and <a target="_blank" href="https://nextjs.org/docs/pages/building-your-application/rendering/static-site-generation">SSG</a>, which improve performance greatly. Pre-rendered pages load only with the essential <a target="_blank" href="https://www.javascript.com/">JavaScript</a>. This makes pages load faster and improves <a target="_blank" href="https://developers.google.com/search/docs/fundamentals/seo-starter-guide#:~:text=SEO%E2%80%94short%20for%20search%20engine,site%20through%20a%20search%20engine.">SEO</a>.</p>
<p>```</p>
<p>import Link from 'next/link';</p>
<p>function HomePage() {</p>
<p>  return (</p>
<p>    &lt;div&gt;</p>
<p>      &lt;h1&gt;Welcome to Next.js!&lt;/h1&gt;</p>
<p>      &lt;Link href="/about"&gt;</p>
<p>        &lt;a&gt;About Us&lt;/a&gt;</p>
<p>      &lt;/Link&gt;</p>
<p>    &lt;/div&gt;</p>
<p>  );</p>
<p>}</p>
<p>export default HomePage;</p>
<p>```</p>
<p>In the code above, the <code>HomePage</code> component in Next.js shows how to link a page to another page using <code>Link</code> from <code>next/link</code>. This setup improves performance by loading pages quickly and improving the user experience with seamless navigation.</p>
<h2 id="heading-scalability">Scalability</h2>
<h3 id="heading-scalability-in-reactjs">Scalability in ReactJS</h3>
<p>ReactJS handles scalability by using reusable components and state management libraries such as Redux; however, scaling large applications can become complex without a solid architectural strategy.</p>
<p>```</p>
<p>import { createStore } from 'redux';</p>
<p>import rootReducer from './reducers';</p>
<p>const store = createStore(rootReducer);</p>
<p>export default store;</p>
<p>```</p>
<p>The code above shows how  Redux manages large-scale applications by arranging and simplifying how application data is stored and accessed.</p>
<h3 id="heading-scalability-in-nextjs">Scalability in Next.js</h3>
<p>Next.js simplifies scalability with features like automatic code splitting and static site generation, which allows seamless scaling without sacrificing performance.</p>
<p>```</p>
<p>import dynamic from 'next/dynamic';</p>
<p>const DynamicComponent = dynamic(() =&gt; import('../components/DynamicComponent'));</p>
<p>function HomePage() {</p>
<p>  return (</p>
<p>    &lt;div&gt;</p>
<p>      &lt;h1&gt;Home Page&lt;/h1&gt;</p>
<p>      &lt;DynamicComponent /&gt;</p>
<p>    &lt;/div&gt;</p>
<p>  );</p>
<p>}</p>
<p>export default HomePage;</p>
<p>```</p>
<p>The code above shows how Next.js scales effectively by loading essential JavaScript code dynamically, which helps improve performance and speed up web pages.</p>
<h2 id="heading-routing">Routing</h2>
<h3 id="heading-reactjs-routing">ReactJS Routing</h3>
<p>ReactJS relies on libraries like React Router for routing, which offers flexibility but requires additional setup. </p>
<p>```</p>
<p>import { BrowserRouter as Router, Route, Switch } from 'react-router-dom';</p>
<p>import Home from './Home';</p>
<p>import About from './About';</p>
<p>function App() {</p>
<p>  return (</p>
<p>    &lt;Router&gt;</p>
<p>      &lt;Switch&gt;</p>
<p>        &lt;Route path="/" exact component={Home} /&gt;</p>
<p>        &lt;Route path="/about" component={About} /&gt;</p>
<p>      &lt;/Switch&gt;</p>
<p>    &lt;/Router&gt;</p>
<p>  );</p>
<p>}</p>
<p>export default App;</p>
<p>```</p>
<p>In the code above,  'react-router-dom' handles the routing. The entire application is wrapped in a <code>&lt;Router&gt;</code> component, which manages different paths like "/" for the Home page and "/about" for the About page using <code>&lt;Route&gt;</code> components inside a <code>&lt;Switch&gt;</code>. This setup ensures that only one page is shown at a time based on the URL.</p>
<h3 id="heading-nextjs-routing">Next.js Routing</h3>
<p>Next.js provides a built-in routing mechanism based on the file system structure, simplifying the process.</p>
<p>```</p>
<p>import Link from 'next/link';</p>
<p>function HomePage() {</p>
<p>  return (</p>
<p>    &lt;div&gt;</p>
<p>      &lt;h1&gt;Home Page&lt;/h1&gt;</p>
<p>      &lt;Link href="/about"&gt;</p>
<p>        &lt;a&gt;About&lt;/a&gt;</p>
<p>      &lt;/Link&gt;</p>
<p>    &lt;/div&gt;</p>
<p>  );</p>
<p>}</p>
<p>export default HomePage;</p>
<p>// pages/about.js</p>
<p>function AboutPage() {</p>
<p>  return &lt;h1&gt;About Page&lt;/h1&gt;;</p>
<p>}</p>
<p>export default AboutPage;</p>
<p>```</p>
<p>In the code above, Next.js simplifies page navigation using the <code>Link</code> component from <code>next/link</code>. When a user clicks on the "About" link (`&lt;a&gt;` tag), it loads the <code>about.js</code> page without reloading the entire application. This makes navigating between different pages smoother and faster for users.</p>
<h2 id="heading-ia"> </h2>
<p>Data Fetching</p>
<h3 id="heading-reactjs-data-fetching">ReactJS Data Fetching</h3>
<p><a target="_blank" href="https://react.dev/">ReactJS</a> uses hooks like <code>useEffect</code> for fetching data, which gives flexibility but requires manual handling when dealing with <a target="_blank" href="https://nextjs.org/docs/pages/building-your-application/rendering/server-side-rendering">server-side rendering (SSR).</a></p>
<p>```</p>
<p>import React, { useState, useEffect } from 'react';</p>
<p>function DataFetchingExample() {</p>
<p>  const [data, setData] = useState(null);</p>
<p>  useEffect(() =&gt; {</p>
<p>    fetch('https://api.example.com/data')</p>
<p>      .then(response =&gt; response.json())</p>
<p>      .then(data =&gt; setData(data))</p>
<p>      .catch(error =&gt; console.error('Error fetching data:', error));</p>
<p>  }, []);</p>
<p>  return (</p>
<p>    &lt;div&gt;</p>
<p>      &lt;h2&gt;Data Fetching Example in ReactJS&lt;/h2&gt;</p>
<p>      {data ? (</p>
<p>        &lt;ul&gt;</p>
<p>          {data.map(item =&gt; (</p>
<p>            &lt;li key={item.id}&gt;{item.name}&lt;/li&gt;</p>
<p>          ))}</p>
<p>        &lt;/ul&gt;</p>
<p>      ) : (</p>
<p>        &lt;p&gt;Loading...&lt;/p&gt;</p>
<p>      )}</p>
<p>    &lt;/div&gt;</p>
<p>  );</p>
<p>}</p>
<p>export default DataFetchingExample;</p>
<p>```</p>
<p>In the code above, React is used to fetch data from a web server. When the page loads, it requests information from the server. After receiving the data from the server, it displays it on the screen as a list. If there's a delay in receiving the data, we show a 'Loading...' message.</p>
<h3 id="heading-nextjs-data-fetching">Next.js Data Fetching</h3>
<p><a target="_blank" href="http://next.js">Next.js</a> simplifies data fetching using methods like <code>getStaticProps</code> and <code>getServerSideProps</code>. It fetches data during page build or request, which improves performance and SEO while streamlining development.</p>
<p>```</p>
<p>export async function getStaticProps() {</p>
<p>  const res = await fetch('https://api.example.com/data');</p>
<p>  const data = await res.json();</p>
<p>  return {</p>
<p>    props: {</p>
<p>      data,</p>
<p>    },</p>
<p>  };</p>
<p>}</p>
<p>function HomePage({ data }) {</p>
<p>  return (</p>
<p>    &lt;div&gt;</p>
<p>      &lt;h2&gt;Data Fetching Example in Next.js&lt;/h2&gt;</p>
<p>      {data ? (</p>
<p>        &lt;ul&gt;</p>
<p>          {data.map(item =&gt; (</p>
<p>            &lt;li key={item.id}&gt;{item.name}&lt;/li&gt;</p>
<p>          ))}</p>
<p>        &lt;/ul&gt;</p>
<p>      ) : (</p>
<p>        &lt;p&gt;Loading...&lt;/p&gt;</p>
<p>      )}</p>
<p>    &lt;/div&gt;</p>
<p>  );</p>
<p>}</p>
<p>export default HomePage;</p>
<p>```</p>
<p>The code above shows the use of <code>fetch()</code> to fetch an external API and retrieve data in <a target="_blank" href="http://next.js">Next.js</a>. It simplifies development by pre-loading and preparing data for display when the page loads, which improves user experience and reduces loading times.</p>
<h2 id="heading-my-hng-internship-expectations">My HNG Internship Expectations</h2>
<p>As I start my journey with the HNG Internship, I am looking forward to the training ahead. With a year of experience as a front-end web developer, I have worked with various web tools and frameworks. I am excited to learn from experienced mentors, take on challenging projects, and improve my expertise in web development skills. I aim to build meaningful connections in the industry because it will help me to achieve my dream of securing a web development role, and this internship is an important step towards that goal.</p>
<p>Joining this program will benefit my career path. I aim to be among the outstanding interns who make it to the final round. The HNG Internship provides a valuable opportunity for learning, personal advancement, and teamwork, and I am enthusiastic about making a meaningful contribution and developing valuable expertise.</p>
<h2 id="heading-conclusion">Conclusion</h2>
<p><a target="_blank" href="https://react.dev/">ReactJS</a> and <a target="_blank" href="http://next.js">Next.js</a> are powerful tools for frontend development, each with its strengths and weaknesses. <a target="_blank" href="https://react.dev/">ReactJS</a> offers unparalleled flexibility and a vast ecosystem, while <a target="_blank" href="http://next.js">Next.js</a> provides improved performance, scalability, and SEO capabilities. By understanding the differences and evaluating your project needs, you can choose the framework that best aligns with your goals. For more information about the comparison of the two frameworks, you can check out the following additional resources:</p>
<ul>
<li><p>https://reactjs.org/docs/getting-started.html</p>
</li>
<li><p>https://nextjs.org/docs/getting-started</p>
</li>
<li><p>https://www.example.com/react-vs-next</p>
</li>
<li><p>https://www.example.com/performance-benchmarks</p>
</li>
<li><p>https://www.example.com/case-studies</p>
</li>
</ul>
<p>To learn more about the HNG Internship and its opportunities, visit the <a target="_blank" href="https://hng.tech/internship">HNG Tech website</a> and <a target="_blank" href="https://hng.tech/hire">HNG Hire</a>.</p>
]]></content:encoded></item><item><title><![CDATA[Efficient Data Storage in JavaScript: Understanding Local and Session Storage with Input Forms]]></title><description><![CDATA[Learn how to store data using local and session storage in JavaScript.]]></description><link>https://riike.hashnode.dev/efficient-data-storage-in-javascript-understanding-local-and-session-storage-with-input-forms</link><guid isPermaLink="true">https://riike.hashnode.dev/efficient-data-storage-in-javascript-understanding-local-and-session-storage-with-input-forms</guid><category><![CDATA[JavaScript]]></category><category><![CDATA[Web Development]]></category><category><![CDATA[localstorage]]></category><category><![CDATA[sessionStorage]]></category><category><![CDATA[Data Storage]]></category><category><![CDATA[web3.storage]]></category><category><![CDATA[Frontend Development]]></category><dc:creator><![CDATA[Mutiat Adepoju]]></dc:creator><pubDate>Thu, 29 Feb 2024 23:23:09 GMT</pubDate><enclosure url="https://cdn.hashnode.com/res/hashnode/image/upload/v1709245375268/2656a8e7-d739-4db2-b5b6-1c810f7c41ae.png" length="0" type="image/jpeg"/><content:encoded><![CDATA[<p>Data storage on the client side is essential for providing a seamless web browsing experience. Two options are available to achieve this: Local Storage and Session Storage. This tutorial will help you understand the concepts of Local Storage and Session Storage, highlighting their advantages, differences, and practical insights by developing an interactive input form. </p>
<p>You can use this information to develop applications that require the storage of user preferences or temporary data.</p>
<h2 id="heading-prerequisites">Prerequisites</h2>
<p>Before starting this tutorial, ensure you have a basic understanding of HTML, CSS, and JavaScript. You'll also need a text editor and a web browser. I'll use Visual Studio Code (VSCode) as my editor for this tutorial.</p>
<h2 id="heading-understanding-local-storage-and-session-storage">Understanding Local Storage and Session Storage</h2>
<h3 id="heading-what-is-local-storage">What is Local Storage?</h3>
<p>Local Storage is a storage method that allows web applications to store data on a user's device. The data remains intact even when the user closes the browser or navigates from the page. Storing user settings and preferences is now simple and effective. To save data in local storage, use: </p>
<p>```</p>
<p>localStorage.setItem('username', 'JohnDoe');</p>
<p>```</p>
<h3 id="heading-what-is-session-storage">What is Session Storage?</h3>
<p>Like Local Storage, Session Storage is a client-side storage mechanism, but with a crucial difference. While data is still stored as key-value pairs. Session Storage is a feature that allows a web page to store data in the user's browser for the duration of the page session. This means the data will be available as long as the user stays on the page, and you will lose the data when you leave or close the page. The data clears once the user closes the tab or browser. This makes Session Storage ideal for storing temporary information that doesn't need to persist across sessions.  Use the code below to save with the Storage session: </p>
<p>```</p>
<p>sessionStorage.setItem('theme', 'light');</p>
<p>```</p>
<p>Check out <a target="_blank" href="https://developer.mozilla.org/en-US/docs/Web/API/Window/sessionStorage">Mozilla Developer Network (MDN) documentation</a> on Local and Session Storage for more details.</p>
<h2 id="heading-advantages-of-client-side-storage">Advantages of Client-Side Storage</h2>
<p>Client-side storage provides several advantages that improve the functionality and responsiveness of web applications. Understanding these benefits is essential to make informed decisions about how and when to use storage options such as Local Storage and Session Storage. The benefits of client-side storage include:</p>
<h3 id="heading-persistence">Persistence</h3>
<p>Local Storage has a significant advantage in its persistence feature. Even after the user closes the browser, data stored using Local Storage remains intact, allowing users to return to the website later and find their data still present. This makes it ideal for storing long-term preferences, user settings, and other essential information. You can check if Local Storage is supported by using the code below.</p>
<p>```</p>
<p>if (typeof(Storage) !== 'undefined') {</p>
<p>  // Local Storage is supported</p>
<p>  // Proceed with storing and retrieving data</p>
<p>} else {</p>
<p>  // Local Storage is not supported</p>
<p>  // Provide a fallback or alternative solution</p>
<p>}</p>
<p>```</p>
<h3 id="heading-scope">Scope</h3>
<p>Session Storage has a limited scope. It is bound to the duration of a page session. The stored data is cleared once the user closes the tab or browser. This makes Session Storage helpful for managing temporary information only relevant during the user's current interaction with the website. Use the code below to save data to Session Storage within a specific scope.</p>
<p>```</p>
<p>//  To Save data to Session Storage within a specific scope </p>
<p>sessionStorage.setItem('sectionPreference', 'news');</p>
<p>```</p>
<h3 id="heading-use-cases">Use Cases</h3>
<p>Understanding the use cases for each storage option is crucial for effective implementation. Local Storage is ideal for scenarios where data needs to persist across sessions, such as user preferences and settings. Session Storage is more suitable for managing temporary data like form inputs and session-specific information. Use the code below if you want to choose between Local and Session Storage:</p>
<p>```</p>
<p>// Example: Choosing storage based on user preference</p>
<p>const storageType = userPrefersPersistentData ? localStorage : sessionStorage;</p>
<p>storageType.setItem('preference', 'value');</p>
<p>```</p>
<p>For further insights into these advantages and how to optimize client-side storage, refer to <a target="_blank" href="https://developers.google.com/web/fundamentals/web-storage">Google's Web Fundamentals guide on Web Storage</a></p>
<h2 id="heading-building-an-interactive-input-form">Building an Interactive Input Form</h2>
<p>First, we must create an input form with HTML, CSS, and JavaScript. It will be an interactive input form to collect and store user data. Follow these steps to structure the HTML and enhance the form with Local Storage and Session Storage.</p>
<h3 id="heading-creating-html-structure">Creating HTML Structure</h3>
<p>Create a basic HTML form with an input field to collect user data using the code below and paste it into the <code>index.html</code> file.</p>
<p>```</p>
<p>&lt;!DOCTYPE html&gt;</p>
<p>&lt;html lang="en"&gt;</p>
<p>&lt;head&gt;</p>
<p>  &lt;meta charset="UTF-8"&gt;</p>
<p>  &lt;meta name="viewport" content="width=device-width, initial-scale=1.0"&gt;</p>
<p>  &lt;title&gt;Data Storage Tutorial&lt;/title&gt;</p>
<p>   &lt;link rel="stylesheet" href="style.css"&gt;</p>
<p>&lt;/head&gt;</p>
<p>&lt;body&gt;</p>
<p>  &lt;h1&gt;Data Storage Example&lt;/h1&gt;</p>
<p>  &lt;form id="dataForm"&gt;</p>
<p>    &lt;label for="userData"&gt;Enter Data:&lt;/label&gt;</p>
<p>    &lt;input type="text" id="userData" required&gt;</p>
<p>    &lt;button type="button" onclick="saveData()"&gt;Save Data&lt;/button&gt;</p>
<p>  &lt;/form&gt;</p>
<p>  &lt;script&gt;</p>
<p>    // Your JavaScript code will go here</p>
<p>  &lt;/script&gt;</p>
<p>&lt;/body&gt;</p>
<p>&lt;/html&gt;</p>
<p>```</p>
<h3 id="heading-adding-css-styling">Adding CSS Styling</h3>
<p>Add basic CSS styling to <code>styles.css</code> file. This will make the form visually appealing with the code below:</p>
<p>```</p>
<p>body {</p>
<p>  font-family: Arial, sans-serif;</p>
<p>  text-align: center;</p>
<p>  padding: 20px;</p>
<p>}</p>
<p>form {</p>
<p>  margin-top: 20px;</p>
<p>}</p>
<p>button {</p>
<p>  margin-top: 10px;</p>
<p>}</p>
<p>```</p>
<p>The form will look this way.</p>
<p><img src="https://lh7-us.googleusercontent.com/30aktEvaYuwyZ_JTF3AFHSGEy7DJBPhLQwySRcrPHUWpW6M1tMWOnG-F6ue0OvMgvhYd3HDoOq1qaaQFrim7IJ-dZKc6-ineb4x51L1oV2-E4Fg5Zf92R-5MqWCE93hNp0_meayK1P-wcS1Iw0AzhIo" alt="Input form to save data" /></p>
<p>Now that you have created your input form let us delve into saving and retrieving data in local storage.</p>
<h2 id="heading-saving-data-to-local-storage-and-retrieving-data-from-local-storage">Saving Data to Local Storage and Retrieving Data from Local Storage</h2>
<h3 id="heading-saving-data-to-local-storage">Saving Data to Local Storage</h3>
<p> Add the JavaScript code below to the &lt;script&gt; tag to save data to Local Storage.</p>
<p>```</p>
<p>// Save data to Local Storage</p>
<p>function saveDataToLocal() {</p>
<p>  const userData = document.getElementById('userData').value;</p>
<p>  localStorage.setItem('userInput', userData);</p>
<p>  alert('Data saved to Local Storage!');</p>
<p>}</p>
<p>```</p>
<p>To check the data you save to your local storage, right-click your webpage &gt; click inspect &gt; click “Application” &gt; navigate to local storage &gt; click your web page link. </p>
<p><img src="https://lh7-us.googleusercontent.com/99AocODNayD3wqDemw7sug2Km0CEdflIablrt9MILUtoc5aXJy8f1QKbdVOlFYAD8DDYYKB02y2CuQKSaMSFzXcB9_fqOVqMmPBkTRymxySxefwIawnulHaiNxATA9j0Z68e9k202qZ1MppkOPq2L-U" alt="To view the data in local storage" /></p>
<p>The “key” and “value” are on the right side. The "key" is a unique identifier used to store and retrieve data, while the "value" is the actual data associated with that key.</p>
<h3 id="heading-retrieving-data-from-local-storage">Retrieving Data from Local Storage</h3>
<p>Retrieve data from Local Storage will display the data on the page</p>
<p>Use the code below to retrieve the data you save in the local storage. Remember, your code must be in the &lt;script&gt; tag.</p>
<p>```</p>
<p>// Retrieve data from Local Storage</p>
<p>window.onload = function() {</p>
<p>  const savedData = localStorage.getItem('userInput');</p>
<p>  if (savedData) {</p>
<p>    alert('Data retrieved from Local Storage: ' + savedData);</p>
<p>  }</p>
<p>};</p>
<p>```</p>
<h3 id="heading-removing-data-from-local-storage">Removing Data from Local Storage</h3>
<p>You can also remove the data you save from the local storage. To remove the data, paste the code below to the &lt;script&gt; tag</p>
<p>```</p>
<p>// Remove data from Local Storage</p>
<p>function removeData() {</p>
<p>  localStorage.removeItem('userInput');</p>
<p>  alert('Data removed from Local Storage!');</p>
<p>}</p>
<p>````</p>
<h2 id="heading-saving-data-to-session-storage-and-retrieving-data-from-session-storage">Saving  Data to Session Storage and Retrieving Data from Session Storage</h2>
<p>Session Storage provides a valuable solution for storing only relevant information during a single session.</p>
<h3 id="heading-saving-data-to-session-storage">Saving Data to Session Storage</h3>
<p>To save your data to the session storage, paste the code below to the  &lt;script&gt; tag: </p>
<p>```</p>
<p>// Save data to Session Storage</p>
<p>function saveDataToSession() {</p>
<p>  const userData = document.getElementById('userData').value;</p>
<p>  sessionStorage.setItem('userInput', userData);</p>
<p>  alert('Data saved to Session Storage!');</p>
<p>}</p>
<p>```</p>
<p>To check the data you save to your “Session Storage, right-click your webpage &gt; click inspect &gt; click “Application” &gt; navigate to Session Storage &gt; click your web page link. </p>
<p><img src="https://lh7-us.googleusercontent.com/tO7Qnactnwj5XhqqjKJk4roOo2tdPVUR5wyj9Y3NL0OvEeDxHWEs0z0FRzH-Lphq3_kMtM6pbuJK48ULA7YRNQb5bvqShMs5SBTPIlMEDotbV7VjjuYzDRWMKzcGQOZOFir8vTNPJHB6B-tPFkbfE7I" alt="Session storage " /></p>
<h3 id="heading-retrieving-data-from-session-storage">Retrieving Data from Session Storage</h3>
<p>To retrieve data from Session Storage and display it, paste the code below to the &lt;script&gt; tag</p>
<p>```</p>
<p>// Retrieve data from the Session Storage</p>
<p>window.onload = function() {</p>
<p>  const savedData = sessionStorage.getItem('userInput');</p>
<p>  if (savedData) {</p>
<p>    alert('Data retrieved from Session Storage: ' + savedData);</p>
<p>  }</p>
<p>};</p>
<p>```</p>
<h3 id="heading-removing-data-from-session-storage">Removing Data from Session Storage</h3>
<p>To remove data from Session Storage, paste the code below to the  &lt;script&gt; tag</p>
<p>```</p>
<p>// Remove data from Session Storage</p>
<p>function removeDataFromSession() {</p>
<p>  sessionStorage.removeItem('userInput');</p>
<p>  alert('Data removed from Session Storage!');</p>
<p>}</p>
<p>```</p>
<h2 id="heading-conclusion">Conclusion</h2>
<p>Now you understand how powerful Local and Session Storage is in JavaScript. It helps you store data better for websites. We learned how to save, get, and delete data using local and session storage. This helps you make smart choices for your needs. With this information, you can make websites better for users. I hope you liked this guide. Thanks for reading!</p>
<h2 id="heading-additional-resources">Additional Resources</h2>
<ul>
<li><p><a target="_blank" href="https://developer.mozilla.org/en-US/docs/Web/API/Web_Storage_API">Mozilla Developer Network (MDN) - Web Storage</a></p>
</li>
<li><p><a target="_blank" href="https://web.dev/articles/web-storage">Google's Web Fundamentals - Web Storage</a></p>
</li>
</ul>
]]></content:encoded></item><item><title><![CDATA[Boost Your Web Design Game with TailwindCSS Utility Classes: A Beginner's Guide]]></title><description><![CDATA[TailwindCSS UtIlities Classes]]></description><link>https://riike.hashnode.dev/boost-your-web-design-game-with-tailwindcss-utility-classes-a-beginners-guide</link><guid isPermaLink="true">https://riike.hashnode.dev/boost-your-web-design-game-with-tailwindcss-utility-classes-a-beginners-guide</guid><category><![CDATA[2Articles1Week]]></category><dc:creator><![CDATA[Mutiat Adepoju]]></dc:creator><pubDate>Thu, 26 Oct 2023 21:10:24 GMT</pubDate><enclosure url="https://cdn.hashnode.com/res/hashnode/image/upload/v1698355601928/23283919-ec3e-421c-8945-2c001a737bf0.avif" length="0" type="image/jpeg"/><content:encoded><![CDATA[<p>In the fast-paced world of web design, efficiency is the name of the game. As web developers, we seek tools and techniques to streamline our workflow and create stunning and responsive websites. That's where <a target="_blank" href="https://tailwindcss.com/">TailwindCSS</a> comes into play.</p>
<p>TailwindCSS is a utility-first CSS framework that allows you to build and customize web interfaces. With its extensive collection of utility classes, achieving a wide range of designs without writing CSS is easy. Whether you're an expert or non-expert developer, TailwindCSS can help you boost your web design game.</p>
<p>In this beginner's guide, you'll go through the essential aspects of TailwindCSS, step by step. By the end of this tutorial, you'll have the knowledge and skills to create responsive and appealing web designs.</p>
<h2 id="heading-prerequisites">Prerequisites</h2>
<p>To follow along with this tutorial, you need a basic knowledge of HTML and CSS. You should also have the following tools installed, a <a target="_blank" href="https://code.visualstudio.com/">text editor</a>, <a target="_blank" href="https://nodejs.org/en">NodeJs</a>, and <a target="_blank" href="https://www.npmjs.com/">NPM</a>(Node Package Manager)</p>
<p>Getting Started with Tailwind CSS</p>
<p>In the realm of web development, crafting beautiful and responsive user interfaces is a formidable task. Yet, with the advent of TailwindCSS, the art of web design is about to undergo a transformation. </p>
<p>In this section, you will explore the essentials of TailwindCSS, with the power of Visual Studio Code.</p>
<h2 id="heading-creating-your-first-tailwindcss-project">Creating Your First TailwindCSS Project</h2>
<p>With VSCode at your fingertips, it’s time to create your first TailwindCSS project. Open VSCode and initiate a new project directory. </p>
<h3 id="heading-installing-tailwindcss">Installing TailwindCSS</h3>
<p>NPM is a recommended approach to installing TailwindCSS. To open the terminal in the VSCode, use the “Ctrl +  ” keyboard shortcut to show or hide the Terminal window.</p>
<h3 id="heading-installation-tailwindcss">Installation TailwindCSS</h3>
<h3 id="heading-using-npm">Using npm</h3>
<p>To install TailwindCSS, the first step is to run the following command in the terminal in your project directory:</p>
<p><code>``` </code></p>
<p><code>npm install tailwindcss</code> </p>
<p><code>``` </code></p>
<p>This command will create <code>package.json</code>, <code>package-lock.json</code>, and <code>node-modules</code> in the file directory.</p>
<p>Next, run the following command</p>
<p><code>``` </code></p>
<p><code>npx tailwindcss init --full</code></p>
<p><code>``` </code> </p>
<p>The command above will create the <code>tailwind.config.js</code> file in the root directory, which is a complete configuration file that includes all the default configurations.</p>
<p>Inside the <code>tailwind.config.js</code>, replace the value of the <code>content</code> field with the paths to all the files you will be using in your project. </p>
<p>The <code>content</code> field is where you configure the paths of your HTML templates, JavaScript components, and any other source files that contain Tailwind class names. For a better understanding, read more on how to <a target="_blank" href="https://tailwindcss.com/docs/content-configuration">configure the source path</a>.</p>
<p>Next, you need to add TailwindCSS to your CSS by adding the following code inside the “styles.css” file like this:</p>
<p><code>@tailwind base;</code></p>
<p><code>@tailwind components</code></p>
<p><code>@tailwind utilities</code></p>
<p>Next, create a new CSS file, I’ll name mine <code>default.css</code> inside the CSS folder. Then run the following command in the terminal</p>
<p><code>``` </code></p>
<p><code>npx tailwindcss -i ./css/styles.css -o ./css/default.css --watch</code></p>
<p><code>``` </code></p>
<p>The command above initializes the project’s main CSS file(`styles.css`) and redirects it to the new CSS file we created (`default.css`). Now you have all the styles you need for your project.</p>
<p>Next, add your compiled CSS file to the <code>head</code> tag: This is the last step. This links the new CSS file(`default.css`) to the <code>index.html</code> file in the <code>head</code> tag using the <code>link</code> tag like this:</p>
<p><code>``` </code></p>
<p><code>&lt;link rel="stylesheet" href="./CSS/default.css"&gt;</code></p>
<p><code>``` </code></p>
<h3 id="heading-using-cdnhttpswwwcdnetworkscomwhat-is-a-cdn-content-delivery-network">Using <a target="_blank" href="https://www.cdnetworks.com/what-is-a-cdn/">CDN</a> (Content Delivery Network)</h3>
<p>You can include TailwindCSS through a CDN in your HTML file if you prefer not to use NPM. CDN is like a network of helper servers that store and deliver your website's content. It makes your website load faster, distributes the traffic efficiently, and provides an extra layer of security. It's an essential tool for web developers to optimize the performance and reliability of their websites, especially for a global audience. Here's how to do it:</p>
<ol>
<li>Add the following link in the &lt;head&gt; section of your HTML file:</li>
</ol>
<p>```</p>
<p><code>&lt;link href =”</code><a target="_blank" href="https://cdn.jsdeliver.net/npm/tailwindcss@2.2.19/dist/tailwind.min.css”"><code>https://cdn.jsdeliver.net/npm/tailwindcss@2.2.19/dist/tailwind.min.css”</code></a></p>
<p><code>rel="stylesheet"&gt;</code></p>
<p>```</p>
<p>This link  includes the minified version of TailwindCSS from the CDN</p>
<h3 id="heading-basic-uses-of-tailwindcss-classes">Basic Uses of TailwindCSS Classes</h3>
<p>TailwindCSS is all about using utility classes in your HTML. These classes provide you with excess styling options for your web elements. For instance, to create a button with TailwindCSS, you can use classes like “bg-blue-500” for the background color and “text-white” for the text color.</p>
<p><strong>The result:</strong></p>
<p><img src="https://lh7-us.googleusercontent.com/4Bsej66--cB-lWl9cqYRDrJDGnmzSDP7HLZMskG0pnjpKIG_RBb9-ctEpakwVdfvrkNrJOGCBZ75SaVDeku81QZqvvlKaD03ozYHm9co6I09EYL3jUMTYgZpporHgFoRRGR1t5aF_-8esiHO2hffGeI" alt /></p>
<p>In the example above, you've utilized classes to style the background color, text color, padding, and rounded corners of the button.</p>
<h3 id="heading-example-of-creating-a-simple-web-page">Example of Creating a Simple Web Page</h3>
<p>Now, let's put what you've learned into practice by creating a simple web page. Here's a basic HTML structure for a page that includes a header, a section, and a footer, all styled using TailwindCSS:</p>
<p>In the body tag, write this:</p>
<p>```</p>
<p><code>&lt;header class=”bg-blue-500 text-white p-2”&gt;</code></p>
<p> <code>&lt;h1 class =”text-4xl font-extrabold”&gt;Welcome to my web page&lt;/h1&gt;</code></p>
<p><code>&lt;/header&gt;</code></p>
<p><code>&lt;section class =”p-6”</code></p>
<p><code>&lt;p class = “text-lg”&gt;This is a simple web page created with TailwindCSS. &lt;/p&gt;</code></p>
<p><code>&lt;/section&gt;</code></p>
<p><code>&lt;footer class=”bg-gray-200 p-4 text-center”&gt; &amp;copy; 2023 My Web Page</code></p>
<p><code>&lt;/footer&gt;</code></p>
<p>```</p>
<p><strong>Output</strong>:</p>
<p><img src="https://lh7-us.googleusercontent.com/HPU7pQ6LDDqitQhKyrDwUOAom9mC3Pn64OA5iHux3Y-pr3tpAtijOGbjJ8yrU2rLeIZlK4u-b97ju7CKalLA95RZ7SxSUtAGx6NNZ1sYOvubYAZ1aDc_HTz9LtPZk2QzHXlz6YVjCmjSuGm4sN3Dw1I" alt /></p>
<p>In this example, you've used TailwindCSS classes to style the header, section, and footer. </p>
<p>Now that you have your TailwindCSS installed in your project, and you've grasped the basics of getting started with TailwindCSS, let’s delve into mastering Tailwind utility classes.</p>
<h2 id="heading-tailwindcss-utility-classes"><strong>TailwindCSS Utility Classes</strong></h2>
<p>The term "utility classes" refers to the individual CSS classes provided by Tailwind CSS, they are designed to apply a specific and practical purpose in styling and layout. It covers a variety of properties, such as margins, padding, typography, color, the flex and grid classes are your go-to tools for creating versatile layouts. </p>
<h3 id="heading-layout-and-spacing"><strong>Layout and Spacing</strong></h3>
<p>The flex classes enable flexible content containers, while grid classes allow you to design grid-based layouts and more. TailwindCSS provides a robust set of classes to help you create responsive and well-structured layouts. Using Flex Classes</p>
<p>The flex classes are useful for responsive design. You can control the alignment, ordering, and sizing of elements within a flex container. Here's a basic example:</p>
<p><img src="https://lh7-us.googleusercontent.com/YX6tP9-rCeiBVRZJstiSmLgNEmdxjQpTheKxZc3x7_Yjd6Lsfm4Db0TqtAttmscMREwJWnAJxNYa7IoAxNNuMG02wmUThQziNzg9rTPVdl-jyStGucLVx6r_flXYd8Lg6GHEAqBJVjOkYN61Q-lrqU0" alt /></p>
<p><img src="https://lh7-us.googleusercontent.com/lx4xHwTVQ7r63c0AWXy7NkEkOHZTv5-46dMdEG_4u9TUPvU9mQOa6B3-M5fR4IeOSP0ykgBOzrPuOL9aJQ6A0t_XbjSIsD9EbwEVK1gmkKT1G8rX-tb7_GAvFPTnr_5eidDSgP7LG-nY9x9jVRRC-pg" alt /></p>
<p>In the example above, you have four elements within a flex container. The flex-1, flex-2, flex-3, and flex-4 classes dictate the ratio of available space they occupy. The flex is always in the horizontal direction. You can adjust these classes to fine-tune your layout.</p>
<h3 id="heading-using-grid-classes">Using Grid Classes</h3>
<p>Grid layouts are perfect for arranging elements in a structured manner. TailwindCSS offers a grid system that makes it easy to create responsive grids. The grid layout is always in the vertical direction. Here's an example:</p>
<p><img src="https://lh7-us.googleusercontent.com/P_1tuo7Hdalq5OHWVbKuHRg8lLZK0B2WOW4H_j7kUwxX3rbzub0E1fxAgXZuVkZr95Qa5l6IGrhked8Mor-m9NzPJshPNNE8SQxPPIZlGyR9MJJL0PI8pfSrHLXJ_EMNVdgTdITNy4T_VBG4n3KGffY" alt /></p>
<p><img src="https://lh7-us.googleusercontent.com/gBgzHSj6o9UmAt9QHW_dQLpztd5EnXFWDiVrnM9h9O5rQ6UPI2jwVMTUVt7qh57pqyq7eW8ZsalMP1x_pYWoZEKmi6lbZBd9O2rNzM_QzjFQKt_SUF7pi6cbR4yAyBfnZ1VtNhSQezVVoUhBcYIsIKM" alt /></p>
<h3 id="heading-margin-and-padding-classes">Margin and Padding Classes</h3>
<p>The effective use of margin and padding classes in TailwindCSS is essential for maintaining proper spacing and alignment in your layout.</p>
<p>Here's a quick overview of <code>margin</code> classes in TailwindCSS:</p>
<p>1. Margin on All Sides:</p>
<ul>
<li>“m-4” adds a margin of 1rem to all sides (top, right, bottom, left)</li>
</ul>
<p>2. The margin on Specific Sides :</p>
<ul>
<li><p>“mt-6” adds a margin-top of 1.5rem</p>
</li>
<li><p>“mr-8” adds a margin-right of 2rem</p>
</li>
<li><p>“mb-10” adds a margin-bottom of 2.5rem.</p>
</li>
<li><p>“ml-12” adds a margin-left of 3rem</p>
</li>
</ul>
<p>3. Negative Margin :</p>
<p>“m-n4” adds a negative margin of 1rem to all sides. We usethis to overlap elements</p>
<p>Here's a quick overview of <code>padding</code> classes in TailwindCSS:</p>
<p>1<strong>. Padding on All Sides:</strong></p>
<p>“p-4” adds a padding of 1rem to all sides (top, right, bottom, left).</p>
<p>2. <strong>Padding on Specific Sides</strong></p>
<ul>
<li><p>“pt-6” adds padding-top of 1.5rem.</p>
</li>
<li><p>“pr-8” adds padding right of 2rem.</p>
</li>
<li><p>“pb-10” adds padding-bottom of 2.5rem.</p>
</li>
<li><p>“pl-12” adds padding-left of 3rem.</p>
</li>
</ul>
<p>3. <strong>Padding Inside an Element</strong></p>
<p>You can apply padding inside an element to create space for the content</p>
<p><code>`&lt;div class="p-6"&gt;</code></p>
<p><code>&lt;p&gt;This content has padding.&lt;/p&gt;</code></p>
<p><code>&lt;/div&gt;` </code></p>
<p>Remember, you can adjust the numeric values in these classes to control the amount of margin and padding according to your design needs. TailwindCSS's flexibility makes it easy to achieve consistent spacing and alignment in your web design.</p>
<p>In the next section, you'll explore text styling and typography, enhancing the aesthetics of your web design.</p>
<h3 id="heading-typography-and-text-styling"><strong>Typography and Text Styling</strong></h3>
<p>In this section, you'll explore how TailwindCSS empowers you to style text in your web design. Text-related classes in TailwindCSS allow you to control fonts, text sizes, colors, text styles, and more.</p>
<p><strong>Fonts, Sizes, and Colors</strong></p>
<p>One of the essential aspects of typography is the choice of font, text size, and color. TailwindCSS simplifies text styling with its utility classes. Now, let’s pick them one by one</p>
<p><strong>Font Family Classes</strong></p>
<p>1. <strong>Sans-serif Font :</strong> Use “font-sans” to apply a sans-serif font to an element.</p>
<p><img src="https://lh7-us.googleusercontent.com/g2JNMy98rUge0YvEDFuVtZc9XvqVnrMseJKOCj0AyAy0WJtELS03HhlMcTBjlQfhrkvUZ3JzSJ_bSCCqKy1GAL4_25blXcTxBsdEWwztRlJroCGL0t1odimWSSKVXUZ5MfJ0J0CW_4JUA4_Oe_f42ec" alt /></p>
<p>Output:</p>
<p><img src="https://lh7-us.googleusercontent.com/O5nDRpuZTU94gHlxPQ6wWhWJbtY_q5UFeUVpjfL5YoJxs1NoerQI58MHcAutr8L8uO04QD6GM1ksru-cettyEOrHdZNa8w-rtjgxP5f2uJZWsOk9F0O520ZEc0UQH2CgY56gS8khi-Ko1w4AF2i5RR8" alt /></p>
<p>2. <strong>Serif Font:</strong> Apply the  “serif font” using the “font-serif” class.</p>
<p><img src="https://lh7-us.googleusercontent.com/0cOl9tQi6zoUVarubOPcjSPf_qS7MFLlJjrW0tf6Vc3_nfY3nkt5PmfBVBvZPe8HTnzUeu2r3offeSxNmB10mbPaP4rLlMXD8UMAT1HM048vC2iBWmlkEx2G9fZgTPjxknXddgHLJ--Qr1fuhchfq7E" alt /></p>
<p>Output:</p>
<p><img src="https://lh7-us.googleusercontent.com/oo70BTAU6cB4BbkDOh9x5nU6_5w9oSPLvQqdjVbb8ZWAfnPm8wo59--anCv-5sgUH6txar-CgWZOQ8PbQMhojtxDOAcMn6_MYS3dJbeQYCnOdc8HWG6ZzD0_iSpIBc9EwoxBhKPqG1FZ4DPGc7ha4lY" alt /></p>
<ol>
<li><strong>Monospace Font</strong></li>
</ol>
<p>The “font-mono” class sets the font to monospace</p>
<p><img src="https://lh7-us.googleusercontent.com/dbWWgxaSZBzJXqbPtKcU686utK1WndDcuyRZxMPFFDpVS89cKpyaMTozEbx2x_tGoCqKOPf-3jRm9cKg3gsgyThtO4FJMY_ji9uWfvLola_8kbLs4Y4yW2dWFMyyjy6S90d1cRmIqwZRqO5-tLUVrBA" alt /></p>
<p>Output:</p>
<p><img src="https://lh7-us.googleusercontent.com/N9hht6SOoQ_pd9cFXg95Gk-fGSMQwr314X2jthfcJTSrzT5fm1JjswsHOqIk9MQgs6tKbkhPddt4ZVI8iixBUO8g5GuIIrK1IpQeDaw_bNYXz8Xx21jpqRhm4DwTpw73PSzCdhJU-LOiqyJqPdUD6iM" alt /></p>
<h5 id="heading-text-size-classes"><strong>Text Size Classes</strong></h5>
<p>The text size classes include:</p>
<ol>
<li><strong>Text Size - Extra Small</strong></li>
</ol>
<p>Use “text-xs” to set the text size to an extra small</p>
<p><img src="https://lh7-us.googleusercontent.com/zJMXiU0vf0CIh_bH6VeDZgD6EBH0-W_h9VFdglnlugHqUYEHKRdQn19dgWdAe24eKhovbltHnOJGo_nmr8TmgCbMAH1FYbx6r1havMcTA8yCShaRtXH2C-wj26dhjCiBfytI5RrElKwpQuN2wNlTW6s" alt /></p>
<p>Output:</p>
<p><img src="https://lh7-us.googleusercontent.com/3hEwIMApbYncqK88CLr-gNDSdKyRpNc9fQ1QFWsz7-fJzHwtCYB3H02K44tSoR9i6Zf6XfX-pKUqUr9tddqaXgS4mz6moaMshOUMN4zWgYHnAy9cV7J_r3ep59HatW4rx558FGrmlqZM1N_BQ_dmw3g" alt /></p>
<ol>
<li><strong>Text Size - Large</strong></li>
</ol>
<p>The text-lg class increases the text size to large text.</p>
<p><img src="https://lh7-us.googleusercontent.com/HGpKbvWZ3CaNdDqc7O_raaIsP-1x30fDNmJk4vm3QzmHhjGr2YftmBK7iLWM76djxsPtTWgYSU8dk57qvzZWkPHGztSXOUONE9VUKQyocweuf3CN91zt6lGQALpIM83eBad6QYM94XmU17pZMiBbaE8" alt /></p>
<p>Output:</p>
<p><img src="https://lh7-us.googleusercontent.com/3NRd-D_HXVYkQXdUOkLA8_n9cghiryUCp6A1dHqhldDo-AKPvFt-X6wtz1wgoueyETtnSbFTtuuIIrBWCf7H6XwFdAWY6zmlIKY0YyWtBIdDX5dFcG3iNoHYMEJMVnifFbnuA81ZuvkDcccb21CuW-k" alt /></p>
<ol>
<li><p><strong>Custom Text Size</strong></p>
<p> You can define a custom text size using the “text-[size]” class. Replace “[size]” with the desired size, such as “text-3x”l for extra-large text</p>
</li>
</ol>
<p><img src="https://lh7-us.googleusercontent.com/tv8_CQ4cUCTLUwSrhuiRs6JMzO1hTWTMMHpvbPoeKAPTfiFSDk-6YF_TRhm8UIoC8MAX6YX7RdhiBgaqrgYmRjFA8mS2PTLgnIY0FkEbOJcqiX3qFCu5WqbUzUVM8XJzoRWJX6d1NDw2X-xT7l8uZF8" alt /></p>
<p>Output:</p>
<p><img src="https://lh7-us.googleusercontent.com/4MFQ9Agc5CUODKKdBRfPGOjzka2l4dX-h7sjGJ1QcnibcydFVOMjXKO7xSd8JUKy6gjJgg5iXmFN7WZDaGl8cLzvoL74Li4RgOa7sLnmukSvRtYXiJfVAmgK8KiY32lXgMZXYPLqArXKD4x25kCtrFo" alt /></p>
<h5 id="heading-text-color-classes"><strong>Text Color Classes</strong></h5>
<p>Some of the  text color classes are:</p>
<ol>
<li><strong>Text Color - Red</strong>: Use classes like text-red-500 to set the text color to red. You can choose from a wide range of predefined colors.</li>
</ol>
<p><img src="https://lh7-us.googleusercontent.com/LA0dE3TaKKT1L2z44voLCNWBPoJ0rynP6FxPmay1hxtjd-iyxH0EpW5fMBYLLKABmXKzK8vzTBlwyOKzkkvrLHU3G2HEdQQAJ2SP9czI8emKW9hVOrQc7k72px6E4UymJC7gP5ZXSwtK9JrVs40h2nc" alt /></p>
<p>Output:</p>
<p><img src="https://lh7-us.googleusercontent.com/lax0nU5xde9De7Tm3Ec_Qs3Ohny4d1PdpaJ42nfDKi1q6EgYeo6csbl97vmqvfRWf0gqm8eHJCz0jmJFNiGlagyyu4Puk-9t-ypXD8VtGs16_DDF2aIWI2LN43B0FD2m_cUBbrAm2N5JHN5o7cQL3RM" alt /></p>
<p>2. <strong>Custom Text Color</strong>: Define the custom text colors using the “text-[color]” class. Replace “[color]” with the color value in your project's configuration.</p>
<p><img src="https://lh7-us.googleusercontent.com/4sVlQQnuTW_2nIz6--dhUbGlDqFq7wJ-BRtaOpC1SiG3g5Z2eX77Y6B_b4BcSnwhLFgd1KvdYuVp1JAbrkIePd7Bs7CKvcR9A61QXUL83SwjFKiuyV2uBN9Kpx43HGd2RdhoCl90NgySRLkhbFAKtCQ" alt /></p>
<p>The Output:</p>
<p><img src="https://lh7-us.googleusercontent.com/tPGUw5srTVCI-jeYyZ2OZJ19Yc2Uaq8vApev8O9ArAIjwCIKMDJ0vOrQ5BZ2gIX7XsiDEUu1jVm-tlr6yRrNT_Zu4qgvaCRAm41hs-ngZWIL0x32oOa8uyI99sqmtWYjzPsRbPRCJ9QqVpd3mXZ-BQA" alt /></p>
<h3 id="heading-text-styles-and-headings"><strong>Text Styles and Headings</strong></h3>
<p>TailwindCSS makes it effortless to apply different text styles to your content. You can use classes like “font-bold” for bold text,” italic” for italicized text, and “uppercase” to transform text to uppercase. Here's an example:</p>
<h5 id="heading-text-styles"><strong>Text Styles</strong>:</h5>
<p>The text style includes:</p>
<ol>
<li><strong>Bold Text:</strong> To make the text bold, use the font-bold class.</li>
</ol>
<p><img src="https://lh7-us.googleusercontent.com/Zy1zsrAdWaDCQOTKJB3pqqBmgxVNkZZOwRAsR-7A37jytG6aM9XGZD0yh9N5WrHGgSQBSjffHqG9jxt8L8nfvoGOI1HH42s5IqeXYKAS6JTGBKIykqh_SFOi1EP__8LxkCm-nSHeWjUBif1MilNpe2A" alt /></p>
<p>The Output:</p>
<p><img src="https://lh7-us.googleusercontent.com/mDzcBCm3e28hVlNO_U2byw7bHZR1_jQyNAOzvkNpteDhg9tgXjgkZGRoQhGUyJ7rnqFBvcwV5j02fGY077sCdAatiuYjs6ObmoaSvLkqzcJdT4m9lkNLX38f5yIN_nJdqDJpPeJ1MoYBKjtHcjazPNg" alt /></p>
<ol>
<li><strong>Italic Text:</strong> Apply italics to text using the “italic” class. </li>
</ol>
<p><img src="https://lh7-us.googleusercontent.com/DvULBp9xWiqprFS0cjVxL-Ct0LcZxvAHyBEzisZRdduUYgMTl_NIpj9LlriZ_BVEwnl9KBAJpF9i4dcb54F4LfsDjMlQC95dVGvG9UUn9Zw-FKyCEejfo2tyYRnxa_Du52vCgWQIabaU3OQeBu6Gb6I" alt /></p>
<p>The Output:</p>
<p><img src="https://lh7-us.googleusercontent.com/zegC7gnZD-hlKz-nOZkIl2k04sgqTWKAgVvOXUgfNkURh5XeUJ7qTfVWKB3W5OSGtgLgvqQUFmvyi5wAmIYYnIHzMc6VDcNxjw3TS7ZPW8jhXM2tycs0E4YFByZMRACD6o-Jo58-oLCA8uUU60SRkeo" alt /></p>
<ol>
<li><strong>Uppercase Text:</strong> Use the “uppercase” class to transform text to uppercase.</li>
</ol>
<p><img src="https://lh7-us.googleusercontent.com/LCMz5FXl3DKqnEPjETijtE6TfTdl8Y4G9qruwhF7XnUQN51PQj2XTaWuRTIlHv6Fkb_O1paIPKhGYIadnrpp0g4E-S5-HgS760guKKizOfVdwPTmZ6Dg75fneApPx6IKbNYlV4DaeHLiglg8x7SbPTs" alt /></p>
<p>The Output:</p>
<p><img src="https://lh7-us.googleusercontent.com/ORTwhZqhHFfwRkGp-fPcsreVL3rogFmFGRVP4elxUxxYqCEiTPoA-fJFXLG8WI21wvqyeA7dckGzKJo1mtsm9pXXk0i3w6zfvVJ7d0V7_YwRCoWEPofNAWfUmtQbhnXdw26NrQ-aOu9_CKkkofsSm6U" alt /></p>
<h5 id="heading-headings"><strong>Headings</strong></h5>
<ol>
<li><strong>Custom Heading Size:</strong> TailwindCSS provides classes like “text-2xl” to set a custom size for headings. You can use classes from “text-2xl” to “text-6xl” to control the size.</li>
</ol>
<p><img src="https://lh7-us.googleusercontent.com/hC30Iid53xS8wIVgqh7lJeggv7gzWW6OMyFBuabJ4TzRFvcvTdw7QQINTEysknUTzxPzC-CfBLeQBKpz9pDosyAWhmu7ENGsELlasSN528XjBfG8kb1JCSFjByR-nsF1km_TNbTm_moQyJj6161kZY4" alt /></p>
<ol>
<li><strong>Extra Bold Heading:</strong> To create an extra bold heading, you can combine the “font-extrabold” class with the desired text size class.</li>
</ol>
<p><img src="https://lh7-us.googleusercontent.com/SX2GUiZjtR8bTAw4ph1RHIFN6pIdHoI3WFLPts9XGeBacxJNqLg11zIobdaP_RgtHYu5aaawQjn-HdXzLMHlo2AdgW7oDNvBKIC0RIrf3T4phgnLwZwjGTn58utMm1fDs_YleIUOpWcN22gv07OlH5A" alt /></p>
<h3 id="heading-text-alignment-line-height-and-text-decoration"><strong>Text Alignment, Line Height, and Text Decoration</strong></h3>
<p>Controlling the alignment, line height, and text decoration are critical aspects of text styling. With TailwindCSS, you can easily achieve these effects.</p>
<h5 id="heading-text-alignment"><strong>Text Alignment</strong></h5>
<p>1. <strong>Center Alignment</strong>: To center-align text within an element, use the “text-center “ class. </p>
<p><img src="https://lh7-us.googleusercontent.com/P6bI4ccr9vcokH5qeF9n0yROlA8yx3f0x1E20OYYE7M3Nl33qne_qBZ_H2iRzYJIcn8SOVMR6ytG8FqoFoDLk6JRhjEITnzrETXjJf1dyy-etpXzvDoLe8Ne_T-qRH-yORzK5Xxotrmj8m7_sGsXyaE" alt /></p>
<p>The Output:</p>
<p><img src="https://lh7-us.googleusercontent.com/9TG4YqqA43XKDLteZ93xCsY_jK9fDPLpIczRmMo-IOzkH-gMLs1qjIj0afvmiLD9atj_oJft03XZreJUKwWRdrsxH0TuGag9qr1GPaXuCAmKAxg0Tz_-8l-vZVbbPG97ngmX-g6JS68kWWKmHcCkX5c" alt /></p>
<p>2. <strong>Left Alignment:</strong> By default, the text is on the left side of the page, but you can use the “text-left” class for clarity.</p>
<p><img src="https://lh7-us.googleusercontent.com/bs0EYE9uxnkGUw6fnQkg_ZuGFfdgpHMFKi-P3g94BRC7vTa-9yzQpcl0E9tUNzXUlbJvrc8yIAiwxuOT0xYWPeDVCI93mxhjE6MYS48bLKbK31GQaFY52BYTCdnqjACX-mcaywHn3GK5h9pJeffnEqc" alt /></p>
<p>The Output:</p>
<p><img src="https://lh7-us.googleusercontent.com/fddgaUomGxy7Pa3v-22dhPsDxCbDMXsc6wdjfJ6vns65Um7czFyTlNFpMW6y0tdipw_gY8diXzzz_jp7D0WClxHyYVYOHU_U6RApMPxtCjVh4Bg06dTIRon9BFdB93rExcUxlDBQUpEGt9v2z_Jelag" alt /></p>
<p>3. <strong>Right Alignment:</strong> For right alignment, apply the “text-right” class. For example,</p>
<p><img src="https://lh7-us.googleusercontent.com/AvmggaAHMVcxQFPV4SZbRWtOfoXk8DNgYZVhEKmg74e3cqzg_LzxyJLd8r-0W9WgNlfDBs2hjf7nYrmFDU3MyusQOhKHY5NgxGZd3p_XLCeOImUhHyXplckDel1cFbV-2OiaD77Vz9Muo_KjHm6v_ZI" alt /></p>
<p>The Output:</p>
<p><img src="https://lh7-us.googleusercontent.com/5wWZKMR7qx2e214vwEe3-pHyzy7M33N_nqLtLPfM-o3zVgWmS9trdhiioPPQZ6OdCfwkb3wAzuJCse6b1E248VjV8bTV4_yyEhYeGIFsjbOMbv1ZSymdG17jQlFNKbhEEdhJ09_O3pWPkNeOXIabLiU" alt /></p>
<h5 id="heading-text-decoration"><strong>Text Decoration</strong></h5>
<p>1. <strong>Underlined Text:</strong> To underline text, use the “underline” class</p>
<p>2. <strong>Line-Through Text:</strong> To add a line through text, apply the “line-through” class.</p>
<ol>
<li><strong>No Underline</strong>: To remove underlines from links or other text elements, use the “no-underline” class.</li>
</ol>
<p><img src="https://lh7-us.googleusercontent.com/vosCZfiu-NBNWCdGSQMwMAyWAs49RoP3LToEN6lqx96eHy6tAKxJo4jI88blzVAKqNB7JNbyKb-CpKVuTSxpmAAzXFh8kTEzweDCNnWCqAGfwjrNgYsEaD0uOXQ00zaNZjZc31QvbrJgzwr1bvQFVaY" alt /></p>
<p>The Output:</p>
<p><img src="https://lh7-us.googleusercontent.com/YaUDKSx9zaRoZrzrHWk7GDGerfx87LZyQQlRKixuucGj4jZ-G35CnVtGsKLBuIWnyOijJstKs3aJQ76PVd3qVXCDcPYOXJWiaKJQNur7TavapGk7kvQVnXAiApXWDAwSsrR86bnyeFS34aXXL_7P2XI" alt /></p>
<p>In the next section, we'll delve into backgrounds and colors, further enhancing the visual appeal of your web design.</p>
<h4 id="heading-backgrounds-and-colors"><strong>Backgrounds and Colors</strong></h4>
<p>TailwindCSS provides a comprehensive set of utility classes for manipulating background colors and gradients. Now you'll delve into how you can use these classes to enhance the visual appeal of your web design.</p>
<h5 id="heading-background-color-and-gradient-classes"><strong>Background Color and Gradient Classes</strong></h5>
<ol>
<li><p><strong>Background Color: One of the most straightforward ways to style backgrounds is by using background color classes. You can set the background color of an element by applying classes like “bg-red-500”, which will give you a red background.</strong>  </p>
</li>
<li><p><strong>Background Gradient: TailwindCSS also makes it easy to create gradients. You can add gradient backgrounds using classes like “bg-gradient-to-r”, followed by the gradient color names.</strong></p>
</li>
</ol>
<p><img src="https://cdn.hashnode.com/res/hashnode/image/upload/v1698354442852/f087ba36-c110-42f7-9543-f5c6704bb596.png" alt class="image--center mx-auto" /></p>
<p>The Output:</p>
<p><img src="https://lh7-us.googleusercontent.com/xEnH8CjdfjAMQUHlq2BGjsR8z2931lQVRIErnnsjDXNXzNaEpNiLZsvQcBTHAIlyBNyOJGa3gvN5zfGJMXZMPkVEaqk79XuLFwn82npkE86qDJtOoXKgoZXg7VWuVazmnZHNLfUj9-o5Q2mVn2vkwQw" alt /></p>
<p>In the second example above, we've applied a horizontal gradient background that transitions from purple to pink to red.</p>
<h2 id="heading-conclusion"><strong>Conclusion</strong></h2>
<p>In this tutorial, you learned how to start using TailwindCSS, including installation and basic usage. You've explored the power of utility classes to style your web elements, create layouts, control spacing, and enhance text styling. The article has taken you through various aspects of TailwindCSS, from installation to layout and spacing,  typography, text styles, and backgrounds.</p>
<p>To continue your TailwindCSS education and discover more about this fantastic framework, I encourage you to explore <a target="_blank" href="https://tailwindcss.com/docs/utility-first">TailwindCSS</a>. There, you'll find in-depth documentation, tutorials, and resources to fuel your creativity and create stunning web designs with ease.</p>
]]></content:encoded></item><item><title><![CDATA[How to Change GitHub Repository Visibility]]></title><description><![CDATA[GitHub is a popular platform for hosting and collaborating on software projects. Managing repository visibility is essential to control access and…]]></description><link>https://riike.hashnode.dev/how-to-change-github-repository-visibility</link><guid isPermaLink="true">https://riike.hashnode.dev/how-to-change-github-repository-visibility</guid><category><![CDATA[GitHub]]></category><category><![CDATA[github repository]]></category><category><![CDATA[Web Development]]></category><category><![CDATA[github-actions]]></category><dc:creator><![CDATA[Mutiat Adepoju]]></dc:creator><pubDate>Wed, 30 Aug 2023 14:44:19 GMT</pubDate><enclosure url="https://cdn.hashnode.com/res/hashnode/image/upload/v1693401225871/2b851a45-ca4c-4af2-bd71-94ff816466dc.png" length="0" type="image/jpeg"/><content:encoded><![CDATA[<p><a target="_blank" href="https://github.com/">GitHub</a> is a popular platform for hosting and collaborating on software projects. Managing repository visibility is essential to control access and contributions to your code. Ignoring this crucial element is not an option. GitHub provides clear steps to adjust repository visibility, whether public or private. In this article, I will walk you through changing the GitHub repository visibility.</p>
<h2 id="heading-introduction"><strong>Introduction</strong></h2>
<p>GitHub repositories can have different levels of visibility. The visibility options range from "public"(where everyone has access to your repository) to "private" (where only those with permission can access it). The level of visibility of a repository can affect who can view, clone, and contribute to your project. If you want to manage the accessibility of your projects, you must know how to change the visibility of your repository.</p>
<h2 id="heading-prerequisites"><strong>Prerequisites</strong></h2>
<p>Before you begin, ensure you have the following:</p>
<ul>
<li><p>A GitHub account</p>
</li>
<li><p>A repository that you own or have administrative access to</p>
</li>
</ul>
<h2 id="heading-changing-repository-visibility"><strong>Changing Repository Visibility</strong></h2>
<h3 id="heading-making-a-repository-private">Making a Repository Private</h3>
<p>Follow the steps below to change the visibility of your repository :</p>
<p>STEP 1: On your Github account, click on the repository you want to want to change its visibility.</p>
<p><img src="https://cdn.hashnode.com/res/hashnode/image/upload/v1693402145831/90d483b3-240b-42a7-aee7-5e51367aabe8.png" alt class="image--center mx-auto" /></p>
<p>STEP 2: Click on the "Settings" tab.</p>
<p><img src="https://cdn.hashnode.com/res/hashnode/image/upload/v1693401895775/7f8e5a2a-8766-4c6b-8005-6525f4f3f886.png" alt class="image--center mx-auto" /></p>
<p>STEP 3: Scroll down to the "Danger Zone" section.</p>
<p><img src="https://cdn.hashnode.com/res/hashnode/image/upload/v1693402127567/e732f2ab-a7c5-4453-88ef-48ae29bd0de5.png" alt class="image--center mx-auto" /></p>
<p>STEP 4: Look for the "Change repository visibility" section, it is the first heading you will see in the "Danger Zone" section.</p>
<p><img src="https://cdn.hashnode.com/res/hashnode/image/upload/v1693402426506/a42515d7-55a7-4ed4-b0f4-2553ec349447.png" alt class="image--center mx-auto" /></p>
<p>STEP 5: Click on “change visibility”.</p>
<p><img src="https://cdn.hashnode.com/res/hashnode/image/upload/v1693402500205/df74438d-a1cd-4df7-ba0e-32fcc46ed3fd.png" alt class="image--center mx-auto" /></p>
<p>STEP 6: Select "change to private" to change the repository to private,</p>
<p><img src="https://cdn.hashnode.com/res/hashnode/image/upload/v1693402812708/914b3736-80b3-4353-80e5-c602284fbec3.png" alt class="image--center mx-auto" /></p>
<p>Or select "change to public" to change the repository to public.</p>
<p><img src="https://cdn.hashnode.com/res/hashnode/image/upload/v1693404379913/f5f83272-069c-4799-b37d-562272e00eb7.png" alt class="image--center mx-auto" /></p>
<p>STEP 7: Click on the “I want to make this repository private” or</p>
<p><img src="https://cdn.hashnode.com/res/hashnode/image/upload/v1693402916640/d092f04c-5ac6-4ef5-9259-d9e9f91eb2d6.png" alt class="image--center mx-auto" /></p>
<p>"I want to make this repository public” that appears on the screen.</p>
<p><img src="https://cdn.hashnode.com/res/hashnode/image/upload/v1693404571342/4e24b3f0-becf-4af5-87b6-6fa17fe60b56.png" alt class="image--center mx-auto" /></p>
<p>STEP 8: A popup message will appear on your screen after clicking on either “I want to make this repository private” or "I want to make this repository public”.</p>
<p>STEP 9: Scroll down, and click on “ I have read and understand these effects”.</p>
<p><img src="https://cdn.hashnode.com/res/hashnode/image/upload/v1693403072376/2bc0b28c-be86-4019-80ad-48105a3fc769.png" alt class="image--center mx-auto" /></p>
<p>STEP 10: Another message will appear on your screen. Click on “Make this repository private” if you want to change it to private or</p>
<ul>
<li><img src="https://cdn.hashnode.com/res/hashnode/image/upload/v1693403253652/e78d937e-97f7-4752-baf4-34953b53c508.png" alt class="image--center mx-auto" /></li>
</ul>
<p>“Make this repository public”, if you are changing it to public.</p>
<p><img src="https://cdn.hashnode.com/res/hashnode/image/upload/v1693405040328/a80bc876-2725-4de6-bfed-c421615046e1.png" alt class="image--center mx-auto" /></p>
<p>STEP 10: After step 9, you will insert your password on the next pop-up message that appears on your screen. This is to confirm you are the one changing the visibility, not someone else.</p>
<p><img src="https://cdn.hashnode.com/res/hashnode/image/upload/v1693403564997/dd1023da-ae15-446e-a9b2-456858fed7b8.png" alt class="image--center mx-auto" /></p>
<h2 id="heading-considerations"><strong>Considerations</strong></h2>
<p>Consider the following before you make changes to your repository:</p>
<ul>
<li><strong>Collaborators</strong></li>
</ul>
<p>Remember that changing a repository's visibility might affect who can access to your project. Collaborators added to the repository should be aware of its visibility level.</p>
<ul>
<li>Public APIs:</li>
</ul>
<p>If your repository contains sensitive data, making it public can expose this information. Always review your codebase for any potential security risks.</p>
<h2 id="heading-conclusion"><strong>Conclusion</strong></h2>
<p>In summary, GitHub's repository visibility settings give you the ability to control who can access your code. It is important to understand how to adjust your GitHub repository's visibility settings. By following the simple steps outlined in this article, you can change the visibility of your repository to meet the specific needs of your project. I hope this article serves as a good guide when you want to change the visibility of your GitHub repository.</p>
]]></content:encoded></item><item><title><![CDATA[How To Attach Youtube Videos In Html Files]]></title><description><![CDATA[How to attach YouTube video in web page]]></description><link>https://riike.hashnode.dev/how-to-attach-youtube-videos-in-html-files</link><guid isPermaLink="true">https://riike.hashnode.dev/how-to-attach-youtube-videos-in-html-files</guid><category><![CDATA[youtube]]></category><category><![CDATA[HTML5]]></category><category><![CDATA[HTML]]></category><dc:creator><![CDATA[Mutiat Adepoju]]></dc:creator><pubDate>Thu, 17 Aug 2023 18:37:40 GMT</pubDate><enclosure url="https://cdn.hashnode.com/res/hashnode/image/upload/v1692296257594/51b7492e-2244-463e-996e-9f95a9acf42b.png" length="0" type="image/jpeg"/><content:encoded><![CDATA[<h1 id="heading-introduction"><strong>INTRODUCTION</strong></h1>
<p>The best and easiest way to play a video in HTML is by embedding a Youtube video. Adding videos directly to your HTML makes your files heavy, which could be a bad experience because your website will take time to load. The goal is to build user-friendly projects, the only way we can achieve that is by compressing the videos. It is encouraged to compress your videos because it helps users to reduce the storage space of web resources and also makes the loading time shorter. In this article, I will show you tricks for uploading large a video to your HTML file.</p>
<h2 id="heading-steps-to-attach-a-youtube-video-in-html-file"><strong>STEPS TO ATTACH A YOUTUBE VIDEO IN HTML FILE</strong></h2>
<p>Follow the following steps to attach a YouTube video in HTML.</p>
<p><strong>STEP 1</strong>: Upload the video you want to attach to <a target="_blank" href="https://studio.youtube.com/">YouTube Studio</a> (you check my <a target="_blank" href="https://riike.hashnode.dev/how-to-upload-videos-to-youtube">last article</a> to learn how to upload a video on YouTube. You can also search for any YouTube video of your choice.</p>
<p><strong>STEP 2</strong>:  Open your VS Code, add the boilerplate, and edit the title on your web page.</p>
<p><img src="https://lh5.googleusercontent.com/WMKsQz3ClbqFPTRYauPblurJKUW8s_lPNx8ZR8FKTn4g1K9w0N7umGrRRXeAKTJSWK4nSzvTTskKzeys0C833d-Fgw4Tk0MKNLrtzNIOFLoLceMppl4RnAh1yjrec3ERTJM0vRdBP-KC03SvgUf4aUM" alt /></p>
<p><strong>STEP 3</strong>: After that, define the &lt;iframe&gt; element in the body tag.</p>
<p><img src="https://lh6.googleusercontent.com/2wFuZWLFSTeEBZcST-DHa5qZY4cYzFf0BLK0noeNiKzW3OfKakHbXrwRqjIlRy5Bt6AzYBW_A0BawgVlX-qzQ2V5uju6zJCt9NKDZizzt-Y_B-FFhBadGzIhy6uoUinXFBhA6_AL3UfWM75nDD8gUh8" alt /></p>
<p><strong>STEP 4:</strong> Add the width and height of your choice to the opening tag. </p>
<p><img src="https://lh6.googleusercontent.com/y_8GdGUA9O6b1QvKQpuPP8H2WzbYJPYu9V3lckAURQZgh8ciWF1gc5borKSBgimbvQRV-rr5lhVTB6P5jrpU4hOy-Tr_lUbq6qq4UYT0HwNmxRhCrUZ4ssFuSBY4WB37tj0Oen53U5pJiPeCURNFGfo" alt /></p>
<p><strong>STEP 5</strong>: Add the src attribute to the &lt;iframe&gt;  tag, inside the “src” attribute,  add the <a target="_blank" href="https://www.youtube.com">YouTube URL</a>. </p>
<p><img src="https://lh5.googleusercontent.com/i77IADCl48ZdFehNYvDZvbojM-lz8nDTs2YKfXxF8gMDdCqF0ym9j_3wr_XALr7ItyCMtNELCBo45Ga7Jgxb2kdyXxSUif05PEw_ZVTgWXTs5Y4Ey05sZ4cv9PYBXH0kaCfS3yZsK0bmLtjr6CrtTpM" alt /></p>
<p><strong>STEP 6</strong>: After the YouTube URL, add “/embed/”.</p>
<p><img src="https://lh6.googleusercontent.com/RO6uYomm9tgixg9VXm0PzP9J5_3fMunEP6pPkOzyRxZTQnoPdMGwXT4t-zx2stpXEspG7KW1XUcigUSgSLKeYkjhYOKq9OAZWDhzkXlS12IC2eHu7fKzYLgRL85NxKRTAHkZIslRJ9bV5lSoL6s2wu4" alt /></p>
<p><strong>STEP 7:</strong> Copy the ID of the  YouTube video you uploaded or the one you searched on YouTube. ( YouTube video ID is unique for every video. It is the last 11 digits  at the end of your YouTube URL.)</p>
<p><img src="https://lh6.googleusercontent.com/cUvvC_WiCKt-VHVsKBvycMGBh7YZpgnnvIgLtMtN8HAyQl0s_nTsfuWXAcoZVjOiEBG4e8KorsTYjcaBvWJ0cwRvonisDB2xyLe_vpLiWnJXSquVg5Fgi4ipx_qNS4OmMffhw7n_7-d-q-U8bhIoZgg" alt /></p>
<p><strong>STEP 8:</strong> Paste the YouTube video ID you copied inside the “src” attribute. ( It should be immediately after “/embed /”.)</p>
<p><img src="https://lh5.googleusercontent.com/as1N-X89FTNVjQCpy53-nzpki6HhkjtxQVxxIgLPDhD_MJsFakzwXNeSuSDNZ-CoAyGyuIEywSwnpCn8mn0WAjF_84BbNIe4cx9UdriuAWrEd_Ja9f7-f1eKUQNIrTNzhzwImdPQhmcL0k0Epm66_GI" alt /></p>
<p><strong>STEP 9:</strong> Right-click anywhere on your VScode, scroll down to “Open with Live Server”, this will take you to your browser.</p>
<p><img src="https://lh4.googleusercontent.com/OgCmiZLvFvMJfNnQRD-J2a1GNHqMYGWfyTPg1FlK2IPqSzM3N_ZKKf_wKPZflVNuVpj93vPgRbMXVi72bUq21lJ8tkhQUv1awmxRQPcqW1N9uiSFXRVLIr_majl_7EmJcNZI4AcHnw0S8s0kTrIN7SM" alt /></p>
<p><strong>STEP 10</strong>: Your video is on your browser.</p>
<p>For your video to be complete, you need to add four parameters to what you already have inside the src attribute. The parameters are:</p>
<ul>
<li><strong>Autoplay:</strong>  We use this to set our video to play automatically or not. The video will play by itself when the autoplay is equal to 1. When the autoplay is equal to 0,  it will not play automatically. </li>
</ul>
<p>Inside the “src” attribute, add the “?” sign immediately after the video ID, followed by autoplay=1 as seen in the image below.</p>
<p><img src="https://lh4.googleusercontent.com/zoAPhlMljKPysDIRFD7l0eN-JZB2Z_KhYkk2hLJ59hiYwM5h1t6C9CTM0xaezJHeUsyG5C4S30jNjca3i88ydRm8ynE9hhqPV3_AnyZ5QRfX0ieh42q-jKHPS0IE5pTjQrXabYwR4Wk6rNAENSsGSYU" alt /></p>
<ul>
<li><strong>Mute</strong>:  Use this feature to either mute or unmute your video. To unmute, use “mute = 0” and mute =1 to mute the video. Add  “&amp;mute = 1” after “autoplay =1” inside your “src” attribute to play the video you attach automatically and also mute it.</li>
</ul>
<p><img src="https://lh3.googleusercontent.com/L4qeqjSEJNXYhFuNc_vuWcMu_NzZd-2Bzo1QZR-7EfjpnK9RkYq8PyKnQfCFhKFCYJJwOPdug7--_XzEUw5N5ai9TN457mch_Tqh8UssYTUA5am7o5EaHGkJS7oNKQNsN8UD9HdmcZ6CoZBUrpLa2VA" alt /></p>
<ul>
<li><strong>Loop</strong>: It allows your video to play after it finishes.“Loop =1” will let your video loop forever, while “loop = 0” will only allow your video to play once. In your URL, add “&amp;loop =1” after the “mute =1”.</li>
</ul>
<p><img src="https://lh4.googleusercontent.com/aWbO6pjrMsVSGpUoXt5d0esbRBrNVDfX-vTFG46z8EZMtfHUfZBHMxYFWE8tL0ikRBJYv_mtDrGfyLNvBoszAY68zz4rzp3QZBqj5VT8w_q7dUCmOd4dHd8uSoy-jJKy7cUlWVNVQn6p3WYUnFokWNU" alt /></p>
<ul>
<li><strong>Controls:</strong> This is the last parameter. It is to display the video control buttons such as pause, play, forward, rewind buttons, and so on.  To hide your video’s control buttons, add “controls = 0”, and add “controls = 1” to display the video’s controls. Inside your“src” attribute above add  “&amp; controls = 1” after “loop = 1”.</li>
</ul>
<p><img src="https://lh6.googleusercontent.com/uWR39gB5VJ_T1usnZwGIutzGOaEF_adeGuhhG7ledqtSrErGdq2Ee2bglDnO_yzQxm55WHDsT5B7Hj-hHSOMgXiJyraVn0GGFmYERVwUOR6rVHFh88KMDcRDW3d2UGo2LBhG1rgIGQy2CQbd-MlSFoc" alt /></p>
<h2 id="heading-conclusion">CONCLUSION</h2>
<p>In conclusion, uploading a YouTube video using HTML is a straightforward process.  Follow the step-by-step guide outlined in this article to embed your YouTube video into your web page. Remember that attaching a YouTube video using HTML will improve your site performance and also enhance the overall user experience. I hope you embed a YouTube video after reading this article.</p>
]]></content:encoded></item><item><title><![CDATA[How To Upload Videos To Youtube]]></title><description><![CDATA[YouTube is a popular social media platform for sharing videos online. It is owned by Google, it is one of the most popular media, people can use it on…]]></description><link>https://riike.hashnode.dev/how-to-upload-videos-to-youtube</link><guid isPermaLink="true">https://riike.hashnode.dev/how-to-upload-videos-to-youtube</guid><category><![CDATA[youtube]]></category><category><![CDATA[how to upload videos on youtube]]></category><category><![CDATA[Upload youtube videos]]></category><dc:creator><![CDATA[Mutiat Adepoju]]></dc:creator><pubDate>Wed, 09 Aug 2023 20:47:37 GMT</pubDate><enclosure url="https://cdn.hashnode.com/res/hashnode/image/upload/v1691614145985/1c7a0252-f8c4-4070-ba25-1120a0746a98.webp" length="0" type="image/jpeg"/><content:encoded><![CDATA[<h1 id="heading-introduction">Introduction</h1>
<p>YouTube is a popular social media platform for sharing videos online. It is owned by Google, it is one of the most popular media, people can use it on their mobile phones and laptops. YouTube is the easiest way to upload videos online and watch videos with almost every type of content. We can share videos of any content like facts, cooking, daily vlogging, or study material. There is no limitation on the size or content of the video and also we can search for any type of video. It is available for both children and adults. In this article, I will show you tricks for uploading videos to YouTube.</p>
<h1 id="heading-steps-for-uploading-videos-on-youtube">Steps for Uploading Videos on YouTube</h1>
<p>Follow the following steps to upload a video on Youtube successfully.</p>
<p>Step 1: On Chrome, create a new tab.</p>
<p><img src="https://cdn.hashnode.com/res/hashnode/image/upload/v1691611887889/ce78dc38-3c5d-4d04-ac94-232dc66f9c38.png" alt class="image--center mx-auto" /></p>
<p>Step 2: Search for <a target="_blank" href="https://studio.youtube.com">Youtube studio</a>.</p>
<p><img src="https://lh5.googleusercontent.com/e_IJC034IpYLw3uOuubV2-QSTsGv48vXHV8JbZbP5Ocwhc5ka6Vu6mUUvPBOGiSGYRkmkFVlvC2RSBjqBt5oqczK5EMF823LMm0aUfgVvnKYVaAyZmOQC_0kou1woaH4ElcI3cPQbz7UWOdIclN6kHM" alt /></p>
<p>Step 3: Click on “CREATE” at the upper right corner of the page, scroll down, and click “UPLOAD FILES”.</p>
<p><img src="https://lh4.googleusercontent.com/BAR_Hl_uzo7p16Og51OHt6eL1i29ucjjZeFPpcXTHYSG-P9wOy7mJQYI_7L0ZlEt4lje6rNfLnfH6vknAltlz6zgYmx-1e1glZordlhjJMtWaTjJHufNaNTN3DqP2E8ALU7yGcH2NLv0xXK4lNAv5s0" alt /></p>
<p>Step 4: Click on “SELECT FILES” on the new page that appear on the screen.</p>
<p><img src="https://lh4.googleusercontent.com/n1_jpvrA1mxPLWJkgRY1xMsZpQ_Efi1tv-OENxDCRqRIWIfVYzdsbbslL0vkolj84O6IL2_-7IHqY6fpWRTL5xY7fFgOhQjjn18UzqR9cCAjs_vdG6iLmyR2nQ45-VUV5H3B8fmrfDxEW1FZyGBgB4A" alt /></p>
<p>Step 5: Select your preferred video or videos from your system’s folder. You can upload up to fifteen videos at a time.</p>
<p>Step 6: Write a preferred title</p>
<p><img src="https://lh3.googleusercontent.com/u8uexUy--SeI-7FS2PI0YdP5ICrW7DVWnnWuIgcMjgHMm7EZFxelnz-IMJ7Y3LMm0ZWVVA4ACSGfpaceutHKnMTWdoegPWvtcOqFLFKIN2u5WXBgG3bL1kMzYIooFQt7WQ30F5d-1rmFKSKyku6pZTQ" alt /></p>
<p>Step 7: Click on “Yes, it is made for kids” if kids can watch your video, if otherwise, click on “No, it’s not made for kids”.</p>
<p><img src="https://lh5.googleusercontent.com/Dy2TYAIl4mzhGwxzcaQVoMAxoDZPCO3d89hP9K_T60cyRvzbDiblG2M6sZl8t70VmFYqGgDSSiPV2zc_lXE131g_eHWAPPDFUMsUOc8Zs0ucCwCHv1ihzexUDxhMGTy6Lr1f70CjsE5PrgIrzzZORAk" alt /></p>
<p>Step 8: Click “NEXT” at the lower right corner of the page</p>
<p>Step 9: Click “NEXT” again  at the lower right corner of the page</p>
<p><img src="https://lh5.googleusercontent.com/dtJ6HyDpIo7llyuXvAuZzDsufuldcujLcmh6njvPpcXF06gVT6_U90ybB8ufw-x7spbTBY7x6uiJkdMjzJ2latP_Oj_fhlYZi2MQNqXn2QQ7L--Z0AGw7eXH8Zgek6ubw4mutL5_yhSnPURqgUA2gO8" alt /></p>
<p>Step 10: Choose where to publish your video, either “Public” or Private at the left side of the page, and click on “SAVE”.</p>
<p>Also, click   “NEXT” on the next page.</p>
<p><img src="https://lh5.googleusercontent.com/3EoH9JqxQQIqtwZDZXMtrgL-o0D5RjyMicjRJ4UDlSBvR3hdcOh7aqsv_OeGCcy-EVuA1OwyAo-RWjIVJ-qZhY4GsiKt-1oXv_LvEUedbwSOK1Tt30-jyLJu31P03r8BtLorfirVqrdMEaEfJOYatXg" alt /></p>
<p>Step 10: Click on “PUBLISH” at the lower right corner of the page.</p>
<p><img src="https://lh3.googleusercontent.com/DyICJtccfUXNWDw-tGikBoIZDgOI2ZZfKzQod5NSBt9Xf90go_KqhoLBZ2miEkXlo7mqHI1tgKZx_HhXt_ko4bliCs5aqy6yO42P2mIFF1KLRt1lDu7aGdN5VeDJpkQfwsgoFW_Zy0qi_205oBI_gAQ" alt /></p>
<p>If you follow the steps above, your video would be successfully published on Youtube.</p>
<p><img src="https://lh5.googleusercontent.com/8mVYbxQohnc1HjNkp078CdaYmLWcKpV9GqW0V-CVrpWC4hvFO1w1lV7QU0KZVHK5zf-3Kw1F_pd93CpK-WX6jjl1-vYSQdJQxiXxyVEsirVZbejdUeYW2HyGPKs9kj9uZZkA0OrdMab2-F5MJYyE3Tw" alt /></p>
<h1 id="heading-conclusion">CONCLUSION</h1>
<p>In conclusion, uploading a YouTube video is a simple process. By following the steps outlined above, you can quickly and easily get your videos up on YouTube and start sharing them with the world. I hope you find this article helpful and informative. If you have any questions about uploading YouTube videos, please feel free to leave a comment.</p>
]]></content:encoded></item><item><title><![CDATA[Understanding JavaScript's Shift() Method of an Array]]></title><description><![CDATA[In my previous articles, I explained JavaScript’s pop () and push() methods of an array. In this article, we will explore the shift() method of an array…]]></description><link>https://riike.hashnode.dev/understanding-javascripts-shift-method-of-an-array</link><guid isPermaLink="true">https://riike.hashnode.dev/understanding-javascripts-shift-method-of-an-array</guid><category><![CDATA[JavaScript]]></category><category><![CDATA[javascript array methods]]></category><category><![CDATA[array methods]]></category><category><![CDATA[array]]></category><category><![CDATA[arrays]]></category><dc:creator><![CDATA[Mutiat Adepoju]]></dc:creator><pubDate>Tue, 01 Aug 2023 23:34:22 GMT</pubDate><enclosure url="https://cdn.hashnode.com/res/hashnode/image/upload/v1690933183140/5667e79c-549f-4c00-9fa8-0874a008602d.jpeg" length="0" type="image/jpeg"/><content:encoded><![CDATA[<h1 id="heading-introduction">Introduction</h1>
<p>In my previous articles, I explained JavaScript’s <a target="_blank" href="https://riike.hashnode.dev/using-the-pop-method-to-manipulate-an-array-in-javascript">pop ()</a> and <a target="_blank" href="https://riike.hashnode.dev/using-the-push-method-to-manipulate-an-array-in-javascript">push()</a> methods of an array. In this article, we will explore the shift() method of an array. By the end of this article, you will understand the details of the shift() method, its functions, and how it is used in JavaScript.</p>
<h2 id="heading-meaning-of-shift-method">Meaning of shift() method</h2>
<p>The shift() method in JavaScript is used to remove the first element from an array and return it. It does not modify the original array but instead returns a new array with the first element removed. The remaining elements are shifted in one position towards the start of the array to fill the gap of the element that was removed. The shift () method changes the length of the original array.</p>
<h2 id="heading-how-to-use-the-shift-method"><strong>How to use the shift() method</strong></h2>
<p><strong>To</strong> use the shift() method, follow the steps below:</p>
<p>Step 1: Open the console tab</p>
<p><img src="https://cdn.hashnode.com/res/hashnode/image/upload/v1690927455212/b9ebb139-764c-49e5-bf21-e3f5d2b404aa.png" alt class="image--center mx-auto" /></p>
<p>Step 2: On the console tab, write:</p>
<p><mark>Let fruits = ["apple", "banana", "orange" "grape" "mango", "avocado"]. </mark> Remember the array should be in strings.</p>
<p><img src="https://cdn.hashnode.com/res/hashnode/image/upload/v1690933648675/ae4dd682-4d23-4061-a2be-26bed4c11f44.png" alt class="image--center mx-auto" /></p>
<p>Step 3: write the "fruits.shift()" and press enter to remove the first element in the array above</p>
<p><img src="https://cdn.hashnode.com/res/hashnode/image/upload/v1690933713797/453d0b3b-de96-49ab-a0b9-a3b3ecdf2a3d.png" alt class="image--center mx-auto" /></p>
<p>Step 4: After the operation above, the new fruits array will be:</p>
<p><img src="https://cdn.hashnode.com/res/hashnode/image/upload/v1690928492506/51000ff6-7be7-433b-9ff0-be58cccdf7f6.png" alt class="image--center mx-auto" /></p>
<p>As you can see from the steps above, the shift() method removed the first element from the fruits array which was "apple". It then returned the value of the removed element which was also "apple".</p>
<h2 id="heading-image-illustration">Image Illustration:</h2>
<p><img src="https://cdn.hashnode.com/res/hashnode/image/upload/v1690929245863/637abc81-57dc-460a-b04f-c6d8a9ded279.png" alt class="image--center mx-auto" /></p>
<h2 id="heading-conclusion"><strong>Conclusion</strong></h2>
<p>In summary, the shift() method is an essential addition to your JavaScript toolkit, allowing you to manipulate arrays effectively. By understanding its behavior and combining it with other array methods, you can write cleaner, more efficient code, making your JavaScript programs more robust and maintainable. Embrace the power of the shift() method and take your array manipulation skills to the next level.</p>
]]></content:encoded></item><item><title><![CDATA[Using  the Pop()  Method to Manipulate an  Array  In JavaScript]]></title><description><![CDATA[In my last article, I explained how to use the pop() method to manipulate an array in JavaScript. In this article, I will be explaining how to use the…]]></description><link>https://riike.hashnode.dev/using-the-pop-method-to-manipulate-an-array-in-javascript</link><guid isPermaLink="true">https://riike.hashnode.dev/using-the-pop-method-to-manipulate-an-array-in-javascript</guid><category><![CDATA[array]]></category><category><![CDATA[array methods]]></category><category><![CDATA[pop]]></category><dc:creator><![CDATA[Mutiat Adepoju]]></dc:creator><pubDate>Wed, 26 Jul 2023 10:19:24 GMT</pubDate><enclosure url="https://cdn.hashnode.com/res/hashnode/image/upload/v1690361606049/cdb5b7c8-9b4f-45d8-8a41-bbc53635f3d7.png" length="0" type="image/jpeg"/><content:encoded><![CDATA[<p>In my last article, I explained how to use the <a target="_blank" href="https://riike.hashnode.dev/using-the-push-method-to-manipulate-an-array-in-javascript">pop() method</a> to manipulate an array in JavaScript.</p>
<p>In this article, I will be explaining how to use the Pop() method to remove the last element in an array.</p>
<h2 id="heading-pop-method-in-javascript">Pop() Method In JavaScript</h2>
<p>The pop () method removes the last element of an array and returns that item. It always changes the length of an array ( the original array). It is also used to return the removed elements. The pop () method relies on the length property and returns undefined when the array is empty.</p>
<h3 id="heading-steps-to-pop-remove-the-last-element-in-an-array-include">Steps to pop() (remove) the last element in an array include:</h3>
<p>Open the console tab</p>
<p><img src="https://cdn.hashnode.com/res/hashnode/image/upload/v1690364329723/1744d2b9-46c2-48e2-a291-058bbe8246cc.png" alt class="image--center mx-auto" /></p>
<ol>
<li><p>Write a list of items in an array in the opened console tab. Remember to put them in strings. For example,</p>
<p> <mark>let food = ["bread", "rice", "beans", "yam", "spaghetti"];</mark></p>
</li>
<li><p>Remove the last element in the list of the array above by using the <mark>food.pop(),</mark> and press the enter key. When you press the <mark>enter key</mark> the last element is removed and the new length and list would be displayed. Remember the index started from 0 from the left to the right side.</p>
<p> <mark>new index = 3</mark></p>
<p> <mark>["bread", "rice", "beans", "yam"</mark>];</p>
<p> <img src="https://cdn.hashnode.com/res/hashnode/image/upload/v1690365813426/18b4350a-abe5-458a-bb7b-ee5a94b1aee8.png" alt class="image--center mx-auto" /></p>
<p> As you can see, the last element "spaghetti" has been removed from the list and the new list has been displayed.</p>
</li>
</ol>
]]></content:encoded></item><item><title><![CDATA[Steps on How to Add a Chrome Extension]]></title><description><![CDATA[Google Chrome is the most popular web browser in the world and as a Google Chrome user, you've probably used some extensions in the browser and are willing…]]></description><link>https://riike.hashnode.dev/steps-on-how-to-add-a-chrome-extension</link><guid isPermaLink="true">https://riike.hashnode.dev/steps-on-how-to-add-a-chrome-extension</guid><category><![CDATA[chrome extension]]></category><category><![CDATA[How to add a chrome extension]]></category><category><![CDATA[how to install chrome extensions]]></category><dc:creator><![CDATA[Mutiat Adepoju]]></dc:creator><pubDate>Fri, 21 Jul 2023 08:16:20 GMT</pubDate><enclosure url="https://cdn.hashnode.com/res/hashnode/image/upload/v1689921813802/f394d349-9a1f-42b2-aa47-faf01a98919a.jpeg" length="0" type="image/jpeg"/><content:encoded><![CDATA[<h3 id="heading-introduction"><strong>Introduction</strong></h3>
<p>Google Chrome is the most popular web browser in the world and as a Google Chrome user, you've probably used some extensions in the browser and are willing to add more of them but don’t know how, right? In this article, I will show you the steps on how you can add a Chrome extension.</p>
<h3 id="heading-table-of-contents"><strong>Table of Contents</strong></h3>
<ul>
<li><p>What are Chrome extensions?</p>
</li>
<li><p>Benefits of Chrome extensions</p>
</li>
<li><p>Steps on how to add a Chrome extension</p>
</li>
<li><p>CONCLUSION</p>
</li>
</ul>
<h3 id="heading-what-is-a-chrome-extension"><strong>What is a Chrome Extension</strong></h3>
<p>A Chrome extension is used to customize the Google Chrome browser. They are installed to provide additional services to the browser. It is used to improve the user’s experience while on the Chrome browser. Some important extensions are:</p>
<ol>
<li><p><strong>Dictionary extension</strong>: it enables you to access definitions of words without leaving your browser page.</p>
</li>
<li><p><strong>Todoist:</strong> It is the world's favorite task manager, it allows you to manage your daily to-do list.</p>
</li>
<li><p><strong>Dark Reader:</strong> It is available to every website. It toggles dark mode background which prevents our eyes from too much light.</p>
</li>
<li><p><strong>Fake Filler:</strong> It fills all input field on a page with fake or dummy data.</p>
</li>
<li><p><strong>Gofullpage:</strong> It takes a screenshot of an entire webpage that you are viewing in your browser.</p>
</li>
</ol>
<p><strong>Benefits of Chrome Extensions.</strong></p>
<p>Some of the benefits of having Chrome extensions installed on the browser include:</p>
<ol>
<li><p><strong>Increase productivity:</strong> Chrome extensions can help you save time and be more efficient by automating tasks, providing quick access to information, and helping you stay organized. For example, you can use an extension to automatically save all the articles you read to a read-later list, or you can use an extension to block distracting websites when you're trying to focus on work.</p>
</li>
<li><p><strong>Customize your browsing experience</strong>: Chrome extensions allow you to customize your browsing experience to your liking. You can change the look and feel of your browser, add new features, and block unwanted content. For example, you can use an extension to change the font and color of your website text, or you can use an extension to block pop-up ads.</p>
</li>
<li><p><strong>Improve your security:</strong> Chrome extensions can help you improve your security by blocking malicious websites, detecting phishing scams, and encrypting your browsing data. For example, you can use an extension to scan all the websites you visit for malware, or you can use an extension to generate strong passwords for all of your online accounts.</p>
</li>
<li><p><strong>Stay up-to-date:</strong> Chrome extensions can help you stay up-to-date with the latest news and information. For example, you can use an extension to get news headlines from your favorite sources, or you can use an extension to follow your favorite social media accounts.</p>
</li>
<li><p><strong>Be more productive</strong>: Chrome extensions can help you be more productive by automating tasks and providing you with quick access to information. For example, you can use an extension to automatically fill out forms, or you can use an extension to get weather updates.</p>
</li>
</ol>
<h3 id="heading-steps-on-how-to-add-a-chrome-extension"><strong>Steps on how to add a Chrome extension</strong></h3>
<p>The add a new Chrome extension, follow the following steps:</p>
<ol>
<li>Open your Google Chrome and open a new tab</li>
</ol>
<p><img src="https://cdn.hashnode.com/res/hashnode/image/upload/v1689923736850/caedc4ce-2cb1-4f20-8c1b-787500ec2365.png" alt class="image--center mx-auto" /></p>
<ol>
<li><p>Click on the three-dot icon menu at the upper-right corner of the chrome.</p>
<p> <img src="https://cdn.hashnode.com/res/hashnode/image/upload/v1689923821295/315f7f8b-4292-461a-ac98-f72727676d3a.png" alt class="image--center mx-auto" /></p>
</li>
<li><p>Scroll down , click on extension</p>
</li>
</ol>
<p><img src="https://cdn.hashnode.com/res/hashnode/image/upload/v1689923905203/0b10eb9a-cde3-4cf7-810a-1410820b8832.png" alt class="image--center mx-auto" /></p>
<ol>
<li>Swipe left and click on “Visit Chrome Web Store”</li>
</ol>
<p><img src="https://cdn.hashnode.com/res/hashnode/image/upload/v1689923977935/38d1ab47-d214-4c99-8560-7dbebb93f5d7.png" alt class="image--center mx-auto" /></p>
<p>To understand the steps above better, let us add the “Simple Translator” extension on Chrome together.</p>
<p>Follow steps 1 - 4 above,</p>
<ol>
<li>When the "Visit Chrome Web Store" is opened,</li>
</ol>
<p>6. Type “Simple Translator” in the search button.</p>
<p><img src="https://cdn.hashnode.com/res/hashnode/image/upload/v1689924283533/ceac3b0f-926c-403c-9520-d50a537ee609.png" alt class="image--center mx-auto" /></p>
<p>7. Make sure the "Extension button" at the left-side, below the "Search button" is clicked.</p>
<p><img src="https://cdn.hashnode.com/res/hashnode/image/upload/v1689924537693/2301a65f-389c-4b4d-b313-cb65e46365de.png" alt class="image--center mx-auto" /></p>
<ol>
<li>Select the “simple translators” displayed on the screen.</li>
</ol>
<p><img src="https://cdn.hashnode.com/res/hashnode/image/upload/v1689925247870/5031ee38-d387-4635-83c4-cdabf075d0b6.png" alt class="image--center mx-auto" /></p>
<ol>
<li>At the upper right side, click on the “Add to Chrome” button.</li>
</ol>
<p><img src="https://cdn.hashnode.com/res/hashnode/image/upload/v1689925477798/24e6a234-4946-4471-9d85-5e8e5ad88f3c.png" alt class="image--center mx-auto" /></p>
<ol>
<li>A message which says "Add Translator? " will pop up after clicking the “Add to Chrome” button.</li>
</ol>
<p><img src="https://cdn.hashnode.com/res/hashnode/image/upload/v1689925519319/e92b27af-df90-48bf-a4b9-dbbf67a6bd1a.png" alt class="image--center mx-auto" /></p>
<ol>
<li><p>Select “Add extension”</p>
</li>
<li><p>After selecting the “Add extension”, the selected extension will automatically download itself</p>
</li>
</ol>
<p><img src="https://cdn.hashnode.com/res/hashnode/image/upload/v1689925827472/a09dc270-9b5d-4e02-99bb-e7ecd1e212b5.png" alt class="image--center mx-auto" /></p>
<p>13. When it is done downloading, a message will pop up at the upper-right corner to notify you that the extension has been added and it is ready for use.</p>
<h3 id="heading-conclusion">Conclusion</h3>
<p>Google extensions can be a great way to customize and improve your Chrome experience. With so many different extensions available, I am sure you will find one that is perfect for you. I hope you have learned the steps to add any Chrome extensions of your choice and hopefully, you would add those extensions you've been wanting to add with by following the steps i explained in this article.</p>
]]></content:encoded></item><item><title><![CDATA[Using  the Push ()  Method to Manipulate an  Array  In JavaScript]]></title><description><![CDATA[We have different methods to manipulate arrays in JavaScript. We have the Push(), Pop(), Join(), Shift(), Unshift() and many more array methods. In this…]]></description><link>https://riike.hashnode.dev/using-the-push-method-to-manipulate-an-array-in-javascript</link><guid isPermaLink="true">https://riike.hashnode.dev/using-the-push-method-to-manipulate-an-array-in-javascript</guid><category><![CDATA[JavaScript]]></category><category><![CDATA[array methods]]></category><category><![CDATA[array, javascript, array methods, map, filter, forEach, ]]></category><category><![CDATA[array]]></category><category><![CDATA[arrays]]></category><dc:creator><![CDATA[Mutiat Adepoju]]></dc:creator><pubDate>Fri, 14 Jul 2023 14:45:44 GMT</pubDate><enclosure url="https://cdn.hashnode.com/res/hashnode/image/upload/v1689342305573/71f38b72-1c63-4488-96ec-ac9820a5f2ce.jpeg" length="0" type="image/jpeg"/><content:encoded><![CDATA[<p>We have different methods to manipulate arrays in JavaScript. We have the Push(), Pop(), Join(), Shift(), Unshift() and many more <a target="_blank" href="https://www.w3schools.com/js/js_array_methods.asp">array methods</a>.</p>
<p>In this article, I would be explaining the Push() method. But before I start, let me remind you of the meaning of an array.</p>
<p><strong><mark>An array </mark></strong> is used to hold multiple values and elements. It stores similar items. An example of an array is:</p>
<p><mark>let food = [rice, beans, yam, bread, porridge]</mark></p>
<p>The example above is an array of food. It holds a list of foods. The lists are arranged in index form ( you start counting from 0 from the left to the right side).</p>
<p>For example, <mark>rice has an index of 0, the index of beans is 1, yam= 2, bread = 3, and porridge = 4.</mark></p>
<h2 id="heading-push-method-in-javascript">Push() Method In JavaScript</h2>
<p>The push () method adds one or more elements to the end of an array and returns the new length and new elements.</p>
<h3 id="heading-steps-to-add-one-element-to-the-end-of-an-array-include">Steps to add one element to the end of an array include:</h3>
<p>On the console tab write:</p>
<ol>
<li><p>Write a list of foods in an array. Remember to put them in strings.</p>
<p> <mark>let array = ["bread", "rice", "beans"];</mark></p>
</li>
<li><p>Add a new food "yam" by using the array.push ()</p>
<p> <mark>array.push("yam");</mark></p>
</li>
<li><p>press enter: when you press the <mark>enter key</mark> the new index of the food list would be displayed. Remember the index started from 0 from the left to the right side.</p>
<p> <mark>new index = 3</mark></p>
</li>
<li><p>Type <mark>array</mark> and press the <mark>enter key</mark> again, and the new list of food would be displayed.</p>
<p> <mark>["bread", "rice", "beans", "yam"]</mark></p>
<p> If you follow the steps above, you will have the same result in the image below. As you can see, the new item "yam" has been added to the end of the array and a new length has been returned.</p>
<p> <img src="https://cdn.hashnode.com/res/hashnode/image/upload/v1689340175483/879212c6-5355-45a6-b7c4-1f2fef753015.png" alt class="image--center mx-auto" /></p>
<h3 id="heading-the-steps-to-add-two-elements-to-the-end-of-an-array-are">The steps to add two elements to the end of an array are:</h3>
<ol>
<li><p>Write a list of fruits in an array. Remember to put them in strings.</p>
<p> <mark>let fruits = ["orange", "lemon", "mango"]</mark></p>
</li>
<li><p>Add two fruits to the end of an array using the array.push ()</p>
<p> <mark>array.push("watermelon", "tangerine")</mark></p>
</li>
<li><p>press enter: when you press the <mark>enter key</mark> the new index of the fruits would be displayed. Remember the index started from 0 from the left to the right side.</p>
<p> <mark>new index = 4</mark></p>
</li>
<li><p>Type <mark>array</mark> and press the <mark>enter key</mark> again, and the new list of fruits would be displayed.</p>
<p> <mark>new list = ["orange", "lemon", "mango", "watermelon", "tangerine"].</mark></p>
<p> If you follow the steps above, you will have the same result in the image below. As you can see, the two fruits "watermelon" and "tangerine" have been added to the end of the array. A new length and list were also returned.</p>
</li>
</ol>
</li>
</ol>
<p>    <img src="https://cdn.hashnode.com/res/hashnode/image/upload/v1689345030190/fc5310f4-4a88-4c08-a1f1-ce51bc467caf.png" alt class="image--center mx-auto" /></p>
<p>    The push () method is very important when you want to add one or more elements to the end of an array. I will explain another method of an array in my next article. I hope you have learned one or two things.</p>
]]></content:encoded></item><item><title><![CDATA[Emerging Trends in Technical Writing: Impact of new technologies and evolving industry standards.]]></title><description><![CDATA[Technical writing is the art of explaining complex information to simpler information to the audience. It has long been a major component of various…]]></description><link>https://riike.hashnode.dev/emerging-trends-in-technical-writing</link><guid isPermaLink="true">https://riike.hashnode.dev/emerging-trends-in-technical-writing</guid><category><![CDATA[writing]]></category><category><![CDATA[Latest Trends in Trechnical Writing]]></category><dc:creator><![CDATA[Mutiat Adepoju]]></dc:creator><pubDate>Tue, 11 Jul 2023 14:51:41 GMT</pubDate><enclosure url="https://cdn.hashnode.com/res/hashnode/image/upload/v1689088483025/d42e295a-e90b-4913-ada9-276c089ca814.png" length="0" type="image/jpeg"/><content:encoded><![CDATA[<h1 id="heading-what-is-technical-writing">What is Technical Writing?</h1>
<p>Technical writing is the art of explaining complex information to simpler information to the audience. It has long been a major component of various industries. In recent years, the field of technical writing has seen significant changes driven by new technologies and evolving industry standards.</p>
<p>In this article, you will explore some of the most important trends in technical writing today and the significant impact they have on the profession.</p>
<h3 id="heading-these-important-trends-are"><strong>These important trends are:</strong></h3>
<ol>
<li><strong>The increasing use of digital tools and platforms</strong></li>
</ol>
<p>One of the most significant trends in technical writing is the increasing use of digital tools and platforms. Technical writers are now using a wider range of tools to create, edit, and publish their documents. These tools can help technical writers to save time and improve efficiency, as well as to create more engaging and interactive content. Some of these tools are Google Docs, Grammarly, and Snipping tools. Read more about <a target="_blank" href="https://iimskills.com/technical-writing-tools/">digital tools</a></p>
<ol>
<li><strong>The use of artificial intelligence and machine learning</strong></li>
</ol>
<p>Another key trend in technical writing is the use of artificial intelligence (AI) and machine learning (ML). You can use AI and ML to automate certain tasks in technical writing, such as generating summaries of long documents, identifying common errors or mistakes, or formatting text consistently. This can help technical writers to save time and improve efficiency, also to reduce the risk of errors or inconsistencies.</p>
<p>3. <strong>The rise of collaborative documentation</strong></p>
<p>In the past, technical writing was often seen as a lonely activity. But, in recent years, there has been a growing trend toward joint documentation. Joint documentation helps to improve the quality of technical information and also to ensure that it is more available to the audience.</p>
<p>4. <strong>The need for more user-centric content</strong></p>
<p>As technology continues to evolve, users are demanding more easy content. This means that technical writers need to create content that is easy to understand and use. The only way you can achieve this is to use clear and concise language, provide visual aids, and use interactive features when writing. They conduct user research, and usability testing, and gather feedback to understand user opinions and points better.</p>
<ol>
<li><strong>Continuous Learning and Skill Development:</strong></li>
</ol>
<p>As technology evolves, technical writers must keep pace with the latest trends, tools, and industry standards. Continuous learning and skill development have become crucial for staying relevant. Technical writers are learning new tools, attending training and conferences, and participating in online communities to enhance their knowledge and improve their craft.</p>
<p>6<strong>.  Increasing the use of interactive and visual content.</strong></p>
<p>Technical writers are using tools like interactive diagrams, videos, and simulations to create more engaging and informative documentation. This is especially important in industries where complex products or systems are being used, such as healthcare, manufacturing, and engineering.</p>
<h3 id="heading-the-impact-of-evolving-industry-standards"><strong>The Impact Of Evolving Industry Standards</strong></h3>
<p>Besides new technologies, technical writers are also facing the challenge of evolving industry standards. For example, the ISO 25746 standard for technical documentation is being updated to reflect the latest trends in the field. This means that technical writers need to be familiar with the latest standards to create compliant documentation.</p>
<h3 id="heading-the-future-of-technical-writing"><strong>The Future of Technical Writing</strong></h3>
<p>The future of technical writing is bright. The demand for technical writers is expected to grow in the coming years, as more and more businesses rely on technical documentation to support their products and services. Technical writers who can embrace new technologies and industry standards will be well-positioned for success in the years to come.</p>
<p><strong>Here are some of the key skills that technical writers will need in the future:</strong></p>
<ul>
<li>Strong writing and editing skills</li>
</ul>
<ul>
<li>Knowledge of technical topics</li>
</ul>
<ul>
<li>Ability to use new technologies</li>
</ul>
<ul>
<li>Understanding of industry standards</li>
</ul>
<ul>
<li>Ability to collaborate with cross-functional teams</li>
</ul>
<ul>
<li>Ability to think strategically and solve problems</li>
</ul>
<p>The field of technical writing is evolving, and there are always new opportunities for technical writers to learn and grow. By developing the right skills and staying up-to-date on the latest trends, you can ensure that you have a successful career in technical writing.</p>
<p><strong>In Conclusion,</strong></p>
<p>The field of technical writing is a dynamic and ever-changing one. By staying up-to-date on the latest trends,  you as a writer should ensure that you are providing your clients with the best possible service. The trends discussed in this article are just a few of the many that are shaping the future of technical writing. As technology continues to evolve, technical writers will need to be adaptable and creative to meet the needs of their clients.</p>
]]></content:encoded></item><item><title><![CDATA[Technical Writing 101: Technical Ultimate Guide]]></title><description><![CDATA[Introduction to technical writing]]></description><link>https://riike.hashnode.dev/technical-writing-101-technical-ultimate-guide</link><guid isPermaLink="true">https://riike.hashnode.dev/technical-writing-101-technical-ultimate-guide</guid><category><![CDATA[Technical writing ]]></category><category><![CDATA[technical writer]]></category><dc:creator><![CDATA[Mutiat Adepoju]]></dc:creator><pubDate>Thu, 06 Jul 2023 20:55:35 GMT</pubDate><enclosure url="https://cdn.hashnode.com/res/hashnode/image/upload/v1689088966665/de677627-4c39-4be2-acdf-bbbcfb8f31d1.jpeg" length="0" type="image/jpeg"/><content:encoded><![CDATA[<p>Thousands of people want to be technical writers but needed to learn how to go about it. This article is to introduce you to technical writing.</p>
<h3 id="heading-what-is-technical-writing"><strong>What is Technical Writing?</strong></h3>
<p><mark>Technical writing</mark> means explaining technical information, manuals, and reports to people in the simplest way we can.</p>
<h3 id="heading-who-is-a-technical-writer">Who is a Technical Writer?</h3>
<p><mark>A technical writer</mark> is a person who writes instructions, manuals, reports, and other documents that explain complex technical information to a variety of audiences, they have strong writing, research skills, and communication skills as well as an understanding of the topic they are writing about.</p>
<h3 id="heading-components-of-technical-writing"><strong>Components of Technical Writing</strong></h3>
<p><strong>The components of technical writing are:</strong></p>
<ol>
<li><p>Purpose: The purpose of the technical report should be written.</p>
</li>
<li><p>Audience: The audience's expectations and needs should be met.</p>
</li>
<li><p>Styles: Technical writing should be professional and free of grammar errors. The sentences should be punctuated.</p>
</li>
<li><p>Technical writing content should be clear, informative, accurate, and easy for the reader to read and understand.</p>
</li>
<li><p>Technical writing should be well organized.</p>
</li>
</ol>
<h3 id="heading-how-to-become-a-technical-writer">How to Become a technical writer</h3>
<p>The steps of becoming a technical writer include:</p>
<ul>
<li><p>Seek education and training</p>
</li>
<li><p>Earn relevant skills</p>
</li>
<li><p>Understanding the style guides</p>
</li>
<li><p>Create a portfolio to show your previous work.</p>
</li>
</ul>
<h3 id="heading-technical-writing-tools"><strong>Technical Writing Tools</strong></h3>
<p>Technical writing tools help technical writers to select the best and right content to make information clear and easy to understand.</p>
<p>We have numerous technical tools, the major ones are:</p>
<ol>
<li><p><strong>Microsoft Word</strong></p>
</li>
<li><p><strong>Google Docs</strong></p>
</li>
<li><p><strong>Markdown Editor</strong></p>
</li>
<li><p><strong>Grammarly</strong></p>
</li>
<li><p><strong>Adobe FrameMaker</strong></p>
</li>
</ol>
<p>To summarize it all, technical writing is an interesting and very challenging skill, but it is worth it. I hope this article guides you and I wish you the best as you embark on your journey of being a technical writer.</p>
]]></content:encoded></item><item><title><![CDATA[Exploring the Basics of JavaScript: An Introduction to the Language of the Web]]></title><description><![CDATA[If you want to be a developer, start with the most accessible skills: HTML and CSS. After HTML and CSS, what next? JAVASCRIPT. Yes, JavaScript is a…]]></description><link>https://riike.hashnode.dev/introduction-to-javascript</link><guid isPermaLink="true">https://riike.hashnode.dev/introduction-to-javascript</guid><category><![CDATA[JavaScript]]></category><category><![CDATA[#newbieintech]]></category><category><![CDATA[introduction to javascript]]></category><category><![CDATA[introduction]]></category><category><![CDATA[Web Development]]></category><dc:creator><![CDATA[Mutiat Adepoju]]></dc:creator><pubDate>Thu, 06 Jul 2023 08:08:21 GMT</pubDate><enclosure url="https://cdn.hashnode.com/res/hashnode/image/upload/v1688584962681/aca8f59d-948c-43ec-8ad6-6f4a9595b506.jpeg" length="0" type="image/jpeg"/><content:encoded><![CDATA[<p>If you want to be a developer, start with the most accessible skills: HTML and CSS. After HTML and CSS, what next? <strong><mark>JAVASCRIPT.</mark></strong> Yes, JavaScript is a programming language that will make what you have built with HTML and CSS function well. I am sure you wish HTML and CSS were programming languages, but they are not. JavaScript is one of many programming languages you must learn as a developer. The prerequisites to know JavaScript are HTML and CSS.</p>
<h3 id="heading-table-of-contents">TABLE OF CONTENTS</h3>
<ul>
<li><p>Meaning of JavaScript</p>
</li>
<li><p>History of JavaScript</p>
</li>
<li><p>Why is JavaScript Important?</p>
</li>
<li><p>Uses Of JavaScript</p>
</li>
<li><p>Possible ways to write JavaScript</p>
</li>
</ul>
<h3 id="heading-meaning-of-javascript">MEANING OF  JAVASCRIPT</h3>
<p>JavaScript (JS) is one of the most popular programming languages in the world. It is a computer programming language that makes websites and applications active and interactive.  It’s unique because it can run directly in the browser, not just on a server. As of March 2023,  98.4% of all websites use JavaScript.</p>
<h3 id="heading-history-of-javascript">HISTORY OF JAVASCRIPT</h3>
<ul>
<li><p>Brendan Eich founded <strong>JS</strong>.</p>
</li>
<li><p>He developed JS in 1995.</p>
</li>
<li><p>He also developed the first JS Engine, Spider Monkey, which Mozilla Firefox still uses.</p>
</li>
<li><p>JS's name was later changed to ‘mocha’ and ‘LiveScript’, but it remains JS due to some trademark reasons.</p>
</li>
</ul>
<h3 id="heading-why-is-javascript-important">WHY IS JAVASCRIPT IMPORTANT?</h3>
<p>JavaScript is essential for the following reasons:</p>
<ol>
<li><p><strong>Speed</strong> - JavaScript tends to be very fast because it often runs immediately within the client's browser. So long as it doesn't require outside resources, JavaScript isn't slowed down by calls to a backend server. Also, significant browsers all support JIT (just in time) compilation for JavaScript, meaning there's no need to compile the code before running it.</p>
</li>
<li><p><strong>Simplicity</strong> - JavaScript's syntax was inspired by Java's and is relatively easy to learn compared to other popular languages like C++.</p>
</li>
<li><p><strong>Popularity</strong> - JavaScript is everywhere on the web, and with the advent of Node.js, it is increasingly used on the backend. There are countless resources to learn JavaScript. Both StackOverflow and GitHub show an increasing amount of projects that use JavaScript, and the traction it's gained in recent years is only expected to increase.</p>
</li>
<li><p><strong>Interoperability</strong> - Unlike PHP or other scripting languages, JavaScript can be inserted into any web page. JavaScript can be used in many applications because of its support in different languages like Pearl and PHP.</p>
</li>
<li><p><strong>Server Load</strong> - JavaScript is client-side, so it reduces the demand on servers overall, and simple applications may not need a server at all.</p>
</li>
<li><p><strong>Rich interfaces</strong> - JavaScript can be used to create features like drag and drop and components such as sliders, all of which greatly enhance a site's user interface and experience.</p>
</li>
<li><p><strong>Extended Functionality</strong> - Developers can extend web page functionality by writing JavaScript snippets for third-party add-ons like Greasemonkey.</p>
</li>
<li><p><strong>Versatility</strong> - There are many ways to use JavaScript through Node.js servers. Suppose you were to bootstrap Node.js with Express, use a document database like MongoDB, and use JavaScript on the frontend for clients. In that case, it is possible to develop an entire JavaScript app from front to back using only JavaScript.</p>
</li>
<li><p><strong>Updates</strong> - Since the advent of ECMAScript 5 (the scripting specification that JavaScript relies on), ECMA International has been dedicated to updating JavaScript annually. So far, we have received browser support for ES6 in 2017 and look forward to ES7 being supported in the future.</p>
</li>
</ol>
<h3 id="heading-uses-of-javascript">USES OF JAVASCRIPT</h3>
<p><img src="https://lh5.googleusercontent.com/QoFPmMsTELCxODWmsYiXVn4PBI7Oc8M3YL0pNK1azdq-HgpkA_dS3K5XiCB8jvUVR8fxilolDz-VuLSJ_BXGhFivyNXW5b2sceTzn3wHXe8ZV3L6o0SH7XmRHnvC1x4Rloa6rlWBIpzlEpRUCZQKq1M" alt /></p>
<h3 id="heading-possible-ways-to-write-javascript">POSSIBLE WAYS TO WRITE JAVASCRIPT</h3>
<p>We have three ways to write JavaScript, they are:</p>
<ol>
<li><strong>Using the browser console tab</strong>:  On your browser, press F12 (for Windows) or Cmd+option+J (for Mac) (for Google Chrome). This will open up your console where you can write your javascript code.</li>
</ol>
<p><img src="https://lh4.googleusercontent.com/TmDVbqc63vzZhqRxHfEaqHEsbmgtsGnicPIE95tcHkUQiEElixTeOkvHspLW2lLvahhE6Knn_FFJXz2-xKeqa10joOLUuRpSM_zWCR6TwdE88PkxAk51mMKMijCGhJwN7HGC1jsWQF43xo5GTD0m5Uo" alt /></p>
<ol>
<li><strong>Using Node.js:</strong> Node. js is not a framework. Instead, Node. js is a JavaScript runtime environment.</li>
</ol>
<p><img src="https://cdn.hashnode.com/res/hashnode/image/upload/v1688588080048/1155e8a8-2242-43fc-baaa-e44f289b9b02.jpeg" alt class="image--center mx-auto" /></p>
<p>You can download Node.js at <a target="_blank" href="https://nodejs.org/en/download">https://nodejs.org/en/download</a></p>
<ol>
<li>Adding the <strong>&lt;script&gt;</strong> tag within the body of the HTML in <a target="_blank" href="https://code.visualstudio.com/download">Vscode</a> to summarize all the JavaScript code. Here’s an example of internal JavaScript with the <strong>&lt;script&gt;</strong> tag:</li>
</ol>
<p><img src="https://lh4.googleusercontent.com/uyQenrPTTMccsXC3cOJgD5WFLD1eUa0TojD_eEkijk2PRYJlGwRFM0lnxxIEFA8GrkrnjURzNvrZkHLN1c7VrkIPmIg4o3aii7Ha9bPLFdv8XW5ssNknQ1mDa9a_rXcgJn92AtbnnVq9le4quHYv5v4" alt class="image--center mx-auto" /></p>
<p>In conclusion, JavaScript is very important. It is very interesting to learn. I will suggest to newbies like me to keep practicing JavaScript and don't rush the learning process. We should have it at the back of our minds that consistency is an important way of learning JavaScript. Also, we should build projects that require little JavaScript so as to master what we have learned.</p>
]]></content:encoded></item></channel></rss>