<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom" xmlns:dc="http://purl.org/dc/elements/1.1/">
  <channel>
    <title>DEV Community: George Kingi</title>
    <description>The latest articles on DEV Community by George Kingi (@george_kingi).</description>
    <link>https://dev.to/george_kingi</link>
    <image>
      <url>https://media2.dev.to/dynamic/image/width=90,height=90,fit=cover,gravity=auto,format=auto/https:%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Fuser%2Fprofile_image%2F1284121%2Fd984e354-1566-48bd-8b42-1de69bb4114e.jpg</url>
      <title>DEV Community: George Kingi</title>
      <link>https://dev.to/george_kingi</link>
    </image>
    <atom:link rel="self" type="application/rss+xml" href="https://dev.to/feed/george_kingi"/>
    <language>en</language>
    <item>
      <title>How to Manage the Overwhelming Information Online as a Beginner in HTML, CSS, and JavaScript</title>
      <dc:creator>George Kingi</dc:creator>
      <pubDate>Wed, 03 Jul 2024 20:18:43 +0000</pubDate>
      <link>https://dev.to/george_kingi/how-to-manage-the-overwhelming-information-online-as-a-beginner-in-html-css-and-javascript-2cjp</link>
      <guid>https://dev.to/george_kingi/how-to-manage-the-overwhelming-information-online-as-a-beginner-in-html-css-and-javascript-2cjp</guid>
      <description>&lt;p&gt;The internet is a vast storehouse of information. When you browse platforms like X, Instagram, Facebook, Medium, and Dev.to and more, numerous people share valid opinions on learning, roadmaps to follow, abundant reading materials, and even quick money-making tips with minimal learning. &lt;/p&gt;

&lt;p&gt;This can become overwhelming, leaving you confused and unsure of where to start. Some individuals are more focused on gaining followers than providing genuine help. This article aims to help you relax, learn without pressure, and strategize on managing the overwhelming amount of information available online.&lt;/p&gt;

&lt;p&gt;As I write this article, I too aim to share valuable insights on how to handle the overwhelming amount of information available on the internet. I hope that this article will assist you, the reader, in understanding that its purpose is purely to help and not to add to the overwhelm.&lt;/p&gt;

&lt;p&gt;Here are a few strategies you can implement to manage the overwhelming amount of information available on the internet, especially as a beginner in HTML, CSS, and JavaScript.&lt;/p&gt;

&lt;h3&gt;
  
  
  Start with a Structured Curriculum
&lt;/h3&gt;

&lt;p&gt;Select a dependable course or tutorial series that starts with the fundamentals and advances in a logical sequence. Free platforms such as freeCodeCamp, Codecademy, and MDN Web Docs provide comprehensive and well-structured learning paths.&lt;/p&gt;

&lt;h3&gt;
  
  
  Set Clear Goals and Objectives
&lt;/h3&gt;

&lt;p&gt;It's essential to have a clear internal dialogue and precisely define your learning goals and objectives. Challenge yourself with questions using the 5 Ws (Why, When, Who, What, Where). For instance, consider whether you aim to build a personal website, grasp responsive design techniques, or establish a solid foundation in web development.&lt;/p&gt;

&lt;h3&gt;
  
  
  Break Your Learning into Small Chunks
&lt;/h3&gt;

&lt;p&gt;Break down your learning into smaller, manageable segments. Begin by mastering HTML tags before progressing to CSS selectors and properties.&lt;/p&gt;

&lt;h3&gt;
  
  
  Regular Practice
&lt;/h3&gt;

&lt;p&gt;Practice is key to mastery, so apply your knowledge by creating small projects. Whether daily or every few days, the goal is consistent practice. Start with simple tasks like building a basic webpage or styling a form. Getting overwhelmed is totally normal, Programming is not a walk to the park, so practice, practice and practice.&lt;/p&gt;

&lt;h3&gt;
  
  
  Use Reliable Resources
&lt;/h3&gt;

&lt;p&gt;Stick to a few trusted resources to avoid information overload. Some recommended sites include:&lt;br&gt;
&lt;a href="https://dev.tourl"&gt;MDN Web Docs&lt;/a&gt;&lt;br&gt;
&lt;a href="https://dev.tourl"&gt;W3Schools&lt;/a&gt;&lt;br&gt;
&lt;a href="https://dev.tourl"&gt;freeCodeCamp&lt;/a&gt;&lt;br&gt;
&lt;a href="https://www.theodinproject.com/"&gt;https://www.theodinproject.com/&lt;/a&gt;&lt;br&gt;
&lt;a href="https://www.codecademy.com/"&gt;https://www.codecademy.com/&lt;/a&gt;&lt;br&gt;
&lt;a href="https://dev.tourl"&gt;Code in Place (stanford.edu)&lt;/a&gt; &lt;/p&gt;

&lt;h3&gt;
  
  
  Join a Community
&lt;/h3&gt;

&lt;p&gt;Engage actively with online communities like Reddit, local coding meetups, or Stack Overflow. Asking questions and joining discussions can offer emotional support and motivation especially when you feel overwhelmed.&lt;/p&gt;

&lt;h3&gt;
  
  
  Keep a Learning Journal
&lt;/h3&gt;

&lt;p&gt;Keeping a daily record of what you learn acts as a second brain, as described in some books. This practice not only strengthens your understanding but also creates a valuable reference for revisiting concepts in the future.  You can maintain a learning journal on your phone.&lt;/p&gt;

&lt;h3&gt;
  
  
  Limit Time on Theory
&lt;/h3&gt;

&lt;p&gt;Finding a balance between studying theory and engaging in practical exercises is essential in coding. Hands-on experience is crucial; simply reading code isn't enough—you must actively code and continue learning through practice.&lt;/p&gt;

&lt;h3&gt;
  
  
  Stay Patient and Persistent
&lt;/h3&gt;

&lt;p&gt;Learning to code demands patience as it unfolds gradually. Stay resilient and remain undeterred by challenges or setbacks along the way; persistence is the key to success.&lt;/p&gt;

&lt;h3&gt;
  
  
  Take Breaks
&lt;/h3&gt;

&lt;p&gt;Don’t overwhelm yourself. Take regular breaks to rest and recharge. This helps in maintaining focus and productivity.&lt;/p&gt;

&lt;h3&gt;
  
  
  Conclusion
&lt;/h3&gt;

&lt;p&gt;Embarking on the journey to learn HTML, CSS, and JavaScript involves navigating a vast sea of information. To overcome this challenge, it's crucial to adopt structured learning strategies, such as choosing reliable courses and breaking down learning into manageable chunks. Practice plays a pivotal role; building small projects regularly reinforces understanding and hone practical skills. Engaging with communities and maintaining a learning journal provide valuable support and encouragement. Remember, patience and persistence are paramount—coding is a gradual process, and perseverance through challenges ensures steady progress toward mastering these essential web development skills.&lt;/p&gt;

</description>
    </item>
    <item>
      <title>What happens if you include the CSS &lt;link&gt; tag inside the &lt;body&gt; of an HTML document instead of the &lt;head&gt;?</title>
      <dc:creator>George Kingi</dc:creator>
      <pubDate>Fri, 14 Jun 2024 20:04:45 +0000</pubDate>
      <link>https://dev.to/george_kingi/what-happens-if-you-include-the-css-tag-inside-the-of-an-html-document-instead-of-the--1f41</link>
      <guid>https://dev.to/george_kingi/what-happens-if-you-include-the-css-tag-inside-the-of-an-html-document-instead-of-the--1f41</guid>
      <description>&lt;p&gt;Well, this question is beginner-friendly but invites thoughtful consideration before giving an answer. &lt;/p&gt;

</description>
    </item>
    <item>
      <title>How To Create a Virtual ATM Card using Plain HTML &amp; CSS</title>
      <dc:creator>George Kingi</dc:creator>
      <pubDate>Thu, 06 Jun 2024 15:39:23 +0000</pubDate>
      <link>https://dev.to/george_kingi/how-to-create-a-virtual-atm-card-using-plain-html-css-nmj</link>
      <guid>https://dev.to/george_kingi/how-to-create-a-virtual-atm-card-using-plain-html-css-nmj</guid>
      <description>&lt;p&gt;Imagine at your disposal, you only have a picture of the Master Card Logo and another picture of the ATM card chip,  you are tasked to create a visually appealing  ATM card from the two separate pictures. You are about to find out how powerful CSS and HTML are. The Tech space is ever-changing but understanding these two languages is crucial for any aspiring Front-End developer. &lt;/p&gt;

&lt;p&gt;This article will guide you on how to make the front and back sides of an ATM card from scratch. The card will flip to the back or front sides when hovered over. We will build the structure of the card using HTML, and then make our ATM card more real and appealing using CSS. This article is meant for beginners and experts in web development. &lt;/p&gt;

&lt;h3&gt;
  
  
  Tools We Need:
&lt;/h3&gt;

&lt;ol&gt;
&lt;li&gt;The Vs Code Editor: &lt;/li&gt;
&lt;li&gt;A Picture of Master Card Logo &lt;/li&gt;
&lt;li&gt;A picture of an ATM card chip &lt;/li&gt;
&lt;/ol&gt;

&lt;h3&gt;
  
  
  Preview of the Final output of the ATM Card
&lt;/h3&gt;

&lt;p&gt;We will create the below-flipping ATM card, you will notice that once you move your cursor over the front or back sides of the ATM, the image responds by flipping on either side. Feel free to change the content of the card as the information displayed on the card is my own&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fzza36yblbg9pakdomgfv.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fzza36yblbg9pakdomgfv.png" alt="Front side"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Faerc8ox625n48zbrpaxo.PNG" class="article-body-image-wrapper"&gt;&lt;img src="https://media.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Faerc8ox625n48zbrpaxo.PNG" alt="Backside"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;h3&gt;
  
  
  Creating The ATM Card from Scratch
&lt;/h3&gt;

&lt;p&gt;We will go ahead and create an HTML file and a CSS file then link them via the external style.&lt;/p&gt;

&lt;p&gt;Follow the below steps;&lt;/p&gt;

&lt;ol&gt;
&lt;li&gt;&lt;p&gt;Visit Google and search for “Master card logo image”. Select and save the image on your computer by either downloading it or snipping it.&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;While on Google, search for “ATM card chip image”. Select the chip image of your choice, snip and save it on your computer.&lt;br&gt;
Create a folder anywhere on your computer, name it whatever you want and copy the two images here.&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;Open Vs Code Editor, go to file select open folder then select the folder you just created.&lt;/p&gt;&lt;/li&gt;
&lt;/ol&gt;

&lt;p&gt;While on the Vs Code Editor, create a new file and name it index.html. The file name must have the  extension .html&lt;/p&gt;

&lt;ol&gt;
&lt;li&gt;Create a new file and name it style.css.  The file name must have the extension .css. &lt;/li&gt;
&lt;/ol&gt;

&lt;p&gt;You should have something like the snip below, I named my folder “Atm”. &lt;/p&gt;

&lt;p&gt;&lt;a href="https://media.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2F7r10329z61zjda4wr76w.PNG" class="article-body-image-wrapper"&gt;&lt;img src="https://media.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2F7r10329z61zjda4wr76w.PNG" alt="Snip"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;h3&gt;
  
  
  HTML Syntax
&lt;/h3&gt;

&lt;p&gt;Open index.html and enter the below code:&lt;/p&gt;

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

&amp;lt;!DOCTYPE html&amp;gt;
&amp;lt;html lang="en"&amp;gt;
&amp;lt;head&amp;gt;
    &amp;lt;meta charset="UTF-8"&amp;gt;
    &amp;lt;meta name="viewport" content="width=device-width, initial-scale=1.0"&amp;gt;
    &amp;lt;title&amp;gt;VIRTUAL CARD&amp;lt;/title&amp;gt;
    &amp;lt;link rel="stylesheet" href="style.css"&amp;gt;
&amp;lt;/head&amp;gt;
&amp;lt;body&amp;gt;    
    &amp;lt;section&amp;gt;
        &amp;lt;div class="Card"&amp;gt;
            &amp;lt;div class="front-face"&amp;gt;
                &amp;lt;header&amp;gt;
                    &amp;lt;span class="logo"&amp;gt;
                        &amp;lt;img src="Chip Image.PNG"&amp;gt;
                        &amp;lt;h5&amp;gt;Master Card&amp;lt;/h5&amp;gt;
                    &amp;lt;/span&amp;gt;
                    &amp;lt;img src="Mastercard Logo.png" class="mscard"&amp;gt;
                &amp;lt;/header&amp;gt;
                &amp;lt;div class="Card-details"&amp;gt;
                    &amp;lt;div class="name-number"&amp;gt;
                        &amp;lt;h6&amp;gt;Card Number&amp;lt;/h6&amp;gt;
                        &amp;lt;h5 class="Number"&amp;gt;2547 0080 9861 0000&amp;lt;/h5&amp;gt;
                        &amp;lt;h5 class="name"&amp;gt;George Kingi&amp;lt;/h5&amp;gt;  
                    &amp;lt;/div&amp;gt;
                    &amp;lt;div class="valid-date"&amp;gt;
                        &amp;lt;h6&amp;gt;Valid Thru&amp;lt;/h6&amp;gt;
                        &amp;lt;h5&amp;gt;25/03&amp;lt;/h5&amp;gt;
                    &amp;lt;/div&amp;gt;
                &amp;lt;/div&amp;gt;
            &amp;lt;/div&amp;gt;
            &amp;lt;div class="back-face"&amp;gt;
                &amp;lt;h6&amp;gt;For customer service call +2547 0080 9861 or email at kingsgee@gmail.com &amp;lt;/h6&amp;gt;
                &amp;lt;span class="magnetic-strip"&amp;gt;&amp;lt;/span&amp;gt;
                &amp;lt;div class="signature"&amp;gt;&amp;lt;i&amp;gt;208&amp;lt;/i&amp;gt; &amp;lt;/div&amp;gt;
                &amp;lt;h5&amp;gt;&amp;lt;p&amp;gt;By using this card the holder agrees to the terms and conditions under
                    which it was issued&amp;lt;/p&amp;gt;&amp;lt;br&amp;gt;&amp;lt;p&amp;gt;This card is issued by and remains the property of Master card Bank Plc, if found please return it to any bank&amp;lt;/p&amp;gt;&amp;lt;/h5&amp;gt;
            &amp;lt;/div&amp;gt;
        &amp;lt;/div&amp;gt;
    &amp;lt;/section&amp;gt;
&amp;lt;/body&amp;gt;
&amp;lt;/html&amp;gt;



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

&lt;/div&gt;

&lt;p&gt;*&lt;em&gt;Output: *&lt;/em&gt;&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fnw9man8klinhqtfq3c7l.PNG" class="article-body-image-wrapper"&gt;&lt;img src="https://media.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fnw9man8klinhqtfq3c7l.PNG" alt="Image description"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;With the above HTML syntax, the structure of our ATM Card is set. The next step is to introduce the powerful CSS to place each of the above information into its rightful place.&lt;/p&gt;

&lt;h3&gt;
  
  
  Application and Implementation of different designs and styles of the ATM Card.
&lt;/h3&gt;

&lt;p&gt;To understand the CSS code better, you will be required to check the comments on the code which offer ease of understanding. &lt;/p&gt;

&lt;h3&gt;
  
  
  The CSS Syntax
&lt;/h3&gt;

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

&amp;lt;!--Resizing the page and font type--&amp;gt;


*{margin: 0%; padding: 0 ;
    box-sizing: border-box;
    font-family: sans-serif;
}


&amp;lt;!--Adding different properties on section area--&amp;gt;
section{
    min-height: 100vh;
    width: 100%; position: relative;
    background-color: rgb(231, 129, 5) ;
    display: flex;
    align-items: center;
    justify-content: center;
    color: bisque;}


.Card{
    height: 225px;
    width: 350px;
    position: relative;
    z-index: 100; transition: 0.6s;
    transform-style: preserve-3d;
}


&amp;lt;!--Adding hover effect on the card--&amp;gt;
.Card:hover {
    transform: rotateY(180deg);
}


.Card .front-face,.back-face{
position: absolute;
background-color: rgba(23, 0, 0, 0.1);
height: 100%; width: 100%;
border-radius: 25px;
backdrop-filter: blur(25px);
border: 1px solid #4e1528;
 padding: 25px;
 backface-visibility: hidden;}


&amp;lt;!--Adding Flip on the back-face of card--&amp;gt;
.back-face{
    border: none;
    padding: 15px 25px 25px;
    transform: rotateY(180deg);}


.front-face .logo img{
    width: 50px;
    margin-right: 100px;

}


h5{
    font-size: 16px;
    font-weight: 400;
}


.front-face .mscard{
    width: 50px;
}


.front-face header, .front-face .logo {display: flex; align-items: center;}


.front-face header {justify-content: space-between;}


.front-face .Card-details
{margin-top: 40px;
display: flex; align-items: flex-end;
justify-content: space-between;}


h6{font-size:10px; font-weight: 400;}


h5.Number{font-size: 18px; letter-spacing: 1px;}


h5.name {margin-top: 20px;}


.back-face h6{font-size: 10px;}


&amp;lt;!--Adding different properties for the back of card--&amp;gt;
.Card .back-face .magnetic-strip
{position: absolute;
height: 40px;
background-color: black;
width: 100%;
top: 50px; left: 0;}




.Card .back-face .signature
{display: flex;
justify-content: flex-end;
align-items: center;
margin-top: 80px;
height: 40px;
width: 85%;
border-radius: 6px;
background: repeating-linear-gradient(#fff, #fff 3px, #efefef 0, #efefef 9px);
}


.signature i
{color: black;
font-size: 12px;
margin-right: -30px;
background-color: white;
padding: 4px 6px;
border-radius: 4px;
z-index: -1;}


.Card .back-face h5
{font-size: 9px;
margin-top: 10px;}


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

&lt;/div&gt;

&lt;p&gt;&lt;strong&gt;Output:&lt;/strong&gt;&lt;/p&gt;

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

&lt;h3&gt;
  
  
  Conclusion
&lt;/h3&gt;

&lt;p&gt;In summary, CSS is so powerful that it can do almost anything, we just created an ATM card, surely CSS can do anything, and developers are encouraged to be more creative to cultivate this knowledge. &lt;/p&gt;

&lt;p&gt;The same knowledge can be applied in the creation of wonderfully designed websites including; Portfolio websites, E-commerce websites, Personal Websites, Business websites, etc. &lt;/p&gt;

</description>
      <category>frontend</category>
      <category>html</category>
      <category>beginners</category>
      <category>css</category>
    </item>
    <item>
      <title>How to Create a Responsive Card Using Plain HTML &amp; CSS</title>
      <dc:creator>George Kingi</dc:creator>
      <pubDate>Tue, 04 Jun 2024 23:26:33 +0000</pubDate>
      <link>https://dev.to/george_kingi/how-to-create-a-responsive-card-using-plain-html-css-1j3b</link>
      <guid>https://dev.to/george_kingi/how-to-create-a-responsive-card-using-plain-html-css-1j3b</guid>
      <description>&lt;p&gt;When you go online, and visit different websites, you will always come across websites that have an image with text at either the top or bottom of the image. A profile picture on a platform with bio text at the bottom is a perfect example of this context. &lt;/p&gt;

&lt;p&gt;The image with the text is called a CARD in HTML and CSS. A card contains a title, a picture (photo), and descriptive information. This article is about how to create a card (image) that responds by either moving up or down once hovered over. It will serve both beginners and experts in HTML and CSS. &lt;/p&gt;

&lt;h3&gt;
  
  
  Preview of the Final Responsive Card Output
&lt;/h3&gt;

&lt;p&gt;We will create the below responsive card, you will notice that once you move your cursor over any of the three images, the image responds by either moving up or down, some exciting but basic animations. &lt;/p&gt;

&lt;p&gt;&lt;a href="https://media.dev.to/cdn-cgi/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Ftk842lrxt2j9o18iyego.PNG" class="article-body-image-wrapper"&gt;&lt;img src="https://media.dev.to/cdn-cgi/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Ftk842lrxt2j9o18iyego.PNG" alt="Image description" width="800" height="467"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;h3&gt;
  
  
  Creating the Responsive Card from Scratch
&lt;/h3&gt;

&lt;p&gt;We will first create the structure of our project using the markup language,  HTML,  then proceed to style it up using CSS.&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media.dev.to/cdn-cgi/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fbpovvf2xrkznflwxq08b.gif" class="article-body-image-wrapper"&gt;&lt;img src="https://media.dev.to/cdn-cgi/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fbpovvf2xrkznflwxq08b.gif" alt="Image description" width="640" height="614"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;h3&gt;
  
  
  Step-by-Step Process of Creating the Responsive Card
&lt;/h3&gt;

&lt;ul&gt;
&lt;li&gt;Download 3 Pictures of your choice (Click here for free pictures:(&lt;a href="https://unsplash.com/s/photos/forms"&gt;https://unsplash.com/s/photos/forms&lt;/a&gt;)
&lt;/li&gt;
&lt;li&gt;Create a folder and give it a name of your choice (I named my folder “Box or Card”).&lt;/li&gt;
&lt;li&gt;Open the folder you just created and inside it create another folder, give it a name of your choice, and move the pictures you just downloaded here.&lt;/li&gt;
&lt;li&gt;Open Vs Code Editor, go to file select open folder then choose the folder you just created.&lt;/li&gt;
&lt;li&gt;While on the Vs Code Editor, create a new file and name it index.html. The file name must have the extension .html&lt;/li&gt;
&lt;li&gt;Create a new file and name it style.css. The file name must have the extension .css and link the two files as seen in the below syntax&lt;/li&gt;
&lt;li&gt;You should have something like the snip below; I named my pictures; Growth, Development, and Reproduction.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;&lt;a href="https://media.dev.to/cdn-cgi/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fiwy1qoreeu7396h9ay94.PNG" class="article-body-image-wrapper"&gt;&lt;img src="https://media.dev.to/cdn-cgi/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fiwy1qoreeu7396h9ay94.PNG" alt="Image description" width="704" height="433"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;h3&gt;
  
  
  HTML Syntax
&lt;/h3&gt;

&lt;p&gt;Open index.html and enter the below code;&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;&amp;lt;!DOCTYPE html&amp;gt;
&amp;lt;html lang="en"&amp;gt;
&amp;lt;head&amp;gt;
    &amp;lt;meta charset="UTF-8"&amp;gt;
    &amp;lt;meta name="viewport" content="width=device-width, initial-scale=1.0"&amp;gt;
    &amp;lt;title&amp;gt;BOX OR CARD&amp;lt;/title&amp;gt;
    &amp;lt;link rel="stylesheet" href="style.css"&amp;gt;
&amp;lt;/head&amp;gt;
&amp;lt;h2&amp;gt;RESPONSIVE SERVICES CARD BY KINGSGEE&amp;lt;/h2&amp;gt;
&amp;lt;body&amp;gt;
    &amp;lt;H3&amp;gt;DISCUSSION ON GROWTH, DEVELOPMENT AND MATURATION&amp;lt;/H3&amp;gt;


&amp;lt;div class="container"&amp;gt;
    &amp;lt;div class="box"&amp;gt;
        &amp;lt;img src="Growth.jpg" alt=""&amp;gt;
        &amp;lt;h3&amp;gt;Growth&amp;lt;/h3&amp;gt;
        &amp;lt;p&amp;gt;Growth is the change in  physical characteristic of an individual
            increase in weight or length
        &amp;lt;/p&amp;gt;
        &amp;lt;button class="button"&amp;gt;See more&amp;lt;/button&amp;gt;
    &amp;lt;/div&amp;gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Output: &lt;br&gt;
&lt;a href="https://media.dev.to/cdn-cgi/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fdwctsf5obdcx7lo2rub2.PNG" class="article-body-image-wrapper"&gt;&lt;img src="https://media.dev.to/cdn-cgi/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fdwctsf5obdcx7lo2rub2.PNG" alt="Image description" width="800" height="465"&gt;&lt;/a&gt;&lt;/p&gt;
&lt;h3&gt;
  
  
  Continuation of the HTML Syntax
&lt;/h3&gt;


&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;
To add more images  add the code below;

!DOCTYPE html&amp;gt;
&amp;lt;html lang="en"&amp;gt;
&amp;lt;head&amp;gt;
    &amp;lt;meta charset="UTF-8"&amp;gt;
    &amp;lt;meta name="viewport" content="width=device-width, initial-scale=1.0"&amp;gt;
    &amp;lt;title&amp;gt;BOX OR CARD&amp;lt;/title&amp;gt;
    &amp;lt;link rel="stylesheet" href="style.css"&amp;gt;
&amp;lt;/head&amp;gt;
&amp;lt;h2&amp;gt;RESPONSIVE SERVICES CARD BY KINGSGEE&amp;lt;/h2&amp;gt;
&amp;lt;body&amp;gt;
    &amp;lt;H3&amp;gt;DISCUSSION ON GROWTH, DEVELOPMENT AND MATURATION&amp;lt;/H3&amp;gt;


&amp;lt;div class="container"&amp;gt;
    &amp;lt;div class="box"&amp;gt;
        &amp;lt;img src="Growth.jpg" alt=""&amp;gt;
        &amp;lt;h3&amp;gt;Growth&amp;lt;/h3&amp;gt;
        &amp;lt;p&amp;gt;Growth is the change in  physical characteristics of an individual
            increase in weight or length
        &amp;lt;/p&amp;gt;
        &amp;lt;button class="button"&amp;gt;See more&amp;lt;/button&amp;gt;
    &amp;lt;/div&amp;gt;
    &amp;lt;div class="box"&amp;gt;
        &amp;lt;img src="Development.jpg" alt=""&amp;gt;
        &amp;lt;h3&amp;gt;Development&amp;lt;/h3&amp;gt;
        &amp;lt;p&amp;gt;This refers to the change in a structure such as thoughts or behavior of an individual
        &amp;lt;/p&amp;gt;
        &amp;lt;button class="button"&amp;gt;See more&amp;lt;/button&amp;gt;
    &amp;lt;/div&amp;gt;
    &amp;lt;div class="box"&amp;gt;
        &amp;lt;img src="Reproduction.jpg" alt=""&amp;gt;
        &amp;lt;h3&amp;gt;Maturatiion&amp;lt;/h3&amp;gt;
        &amp;lt;p&amp;gt;Its the emergence of unfolding of an individual genetic potential as they become older
        &amp;lt;/p&amp;gt;
        &amp;lt;button class="button"&amp;gt;See more&amp;lt;/button&amp;gt;
    &amp;lt;/div&amp;gt;
&amp;lt;/div&amp;gt;
&amp;lt;br&amp;gt;&amp;lt;br&amp;gt;
&amp;lt;h3&amp;gt;&amp;amp;trade; &amp;amp;copy;+254700809861 for more inquiries&amp;lt;/h3&amp;gt;
&amp;lt;/body&amp;gt;
&amp;lt;/html&amp;gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;


&lt;p&gt;Output:&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media.dev.to/cdn-cgi/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Ffxrh0m8lq92peh2ilijb.PNG" class="article-body-image-wrapper"&gt;&lt;img src="https://media.dev.to/cdn-cgi/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Ffxrh0m8lq92peh2ilijb.PNG" alt="Image description" width="745" height="687"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;With the above HTML syntax, our structure is set. The next step is to introduce the powerful CSS to make our images responsive. &lt;/p&gt;
&lt;h3&gt;
  
  
  Application and Implementation of different designs and styles on Cards.
&lt;/h3&gt;

&lt;p&gt;Discussing the Asterisk ( *), Margins, Border, Padding, and other CSS styles&lt;/p&gt;

&lt;p&gt;The Asterisk (*):➜ is the CSS universal selector that selects all elements in the HTML document&lt;/p&gt;

&lt;p&gt;Margin:➜ Used to create extra space around an element. &lt;/p&gt;

&lt;p&gt;Border:➜ Used to set an element’s border. &lt;/p&gt;

&lt;p&gt;Padding:➜ Used to create space between the content of an element and its border, the default state is 2px.&lt;/p&gt;

&lt;p&gt;CSS Hover, Transform, Transition, and some Animations and how to apply them&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;* {
    margin: 0;
    padding: 0;
    text-align: center;
    font-family: arial;
}


&amp;lt;!--Adding color on background--&amp;gt;
body{
    background-color: #146f6f;
    padding-top: 50px ;
    padding-bottom: 100px;
}


&amp;lt;!--Adding color on the headings--&amp;gt;
h2{
    color: #0c0115;
}


h3 { color: #0c0115;
    font-size: 30px;
    margin-top: 10px;
}


.container{
    padding-top:50px;
    gap: 25px ;
    margin: auto;
    display:flex;
    justify-content: center;
}


&amp;lt;!--Adding responsiveness to the images--&amp;gt;


.box{width: 320px;
    height: 500px;
    background-color: #3ea9a9;
    border-radius: 100px;
    transition:transform 0.6s ease;
}


&amp;lt;!--Adding hover--&amp;gt;


.box:hover{
    transform: translateY(30px);
}


.box img{
    width: 250px;
    height: 250px;
    padding-top: 30px;
    border-radius: 30%;
}


.box p {
    color: #1a082a;
    padding-top: 10px;
    padding-bottom: 10px;
    line-height: 25px;
    font-family: Georgia;
    font-weight: 5px;
}


.box button{
    width: 150px;
    height: 40px;
    background-color: #1c092e;
    border-radius: 10px;
     border: none;
     color: #b788e2;
     font-size: 17px;
     font-weight: bold;
     margin-top: 2px;}


.box button:hover{
    background-color: #1232ea;
    color: whitesmoke;
    border: 2px solid salmon;
}
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Output: &lt;/p&gt;

&lt;p&gt;&lt;a href="https://media.dev.to/cdn-cgi/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fwyjyq5d2locvfjvnxrxp.gif" class="article-body-image-wrapper"&gt;&lt;img src="https://media.dev.to/cdn-cgi/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fwyjyq5d2locvfjvnxrxp.gif" alt="Image description" width="600" height="338"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;h3&gt;
  
  
  Importance of  Cards in Web Development
&lt;/h3&gt;

&lt;p&gt;A card’s importance can not be downplayed as it is crucial in providing a user-friendly representation of information. A card provides a summary of what the developer intends to represent in a visually appealing way, notice that in our mini project above, we were able to add pictures, put some text, and define what the pictures are about, they look good, right? 90% of online websites have an aspect of card and developers should embrace this exciting skill. While this article has only touched base, developers are encouraged to keep on learning different CSS card designs.&lt;/p&gt;

&lt;h3&gt;
  
  
  Conclusion
&lt;/h3&gt;

&lt;p&gt;In summary, our mini project above has helped us create a web page that has some animation, user user-friendly, and easy to read. Design cards are essential in displaying content in an effective and organized manner making a website user-friendly and visually appealing as we can see.&lt;br&gt;
This knowledge can be applied in the making of different types of websites including; Portfolio websites, E-commerce websites, Personal Websites, Business websites, etc. Thanks to the internet, I can voice my valid opinions and help other developers learn and grow in Tech.&lt;/p&gt;

</description>
      <category>webdev</category>
      <category>css</category>
      <category>html</category>
      <category>animation</category>
    </item>
    <item>
      <title>The Power of CSS in Styling-up Forms</title>
      <dc:creator>George Kingi</dc:creator>
      <pubDate>Sat, 25 May 2024 18:06:59 +0000</pubDate>
      <link>https://dev.to/george_kingi/the-power-of-css-in-styling-up-forms-o8m</link>
      <guid>https://dev.to/george_kingi/the-power-of-css-in-styling-up-forms-o8m</guid>
      <description>&lt;p&gt;This is the second part of our mini project on creating an Online Flipping Form. Here is the link for Part 1,  (&lt;a href="https://dev.to/george_kingi/how-to-create-an-online-flipping-form-using-plain-html-and-css-4ka5"&gt;https://dev.to/george_kingi/how-to-create-an-online-flipping-form-using-plain-html-and-css-4ka5&lt;/a&gt;.) &lt;/p&gt;

&lt;p&gt;In part 1, we focused on the  HTML and created the structure of the Front and Back sides of the online form. In this section, we will dive deep into CSS, introduce unique styling on our forms, and give some highlights on Javascript. &lt;/p&gt;

&lt;h2&gt;
  
  
  Harnessing the Power of CSS in Styling-up Forms
&lt;/h2&gt;

&lt;p&gt;Remember, we created a CSS file and linked it with the HTML file, Let's journey together in making the form flip; We affect changes on all elements on the webpage, and we select the elements using the Universal Selector (&lt;code&gt;*&lt;/code&gt;) as below.&lt;/p&gt;

&lt;p&gt;We then style up the container as below: as we style the container, notice that the output affects the contents and background of our webpage.&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;*{
    margin: 0;
    padding: 0;
    font-family: sans-serif;
}


.container{
    height: 100vh;
    background: #f53207;
    color: #340707;
    display: flex;
    align-items: center;
    justify-content: center;
}

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

&lt;/div&gt;



&lt;p&gt;Output:&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media.dev.to/cdn-cgi/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fr71jbcag4k73sxsely4t.PNG" class="article-body-image-wrapper"&gt;&lt;img src="https://media.dev.to/cdn-cgi/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fr71jbcag4k73sxsely4t.PNG" alt="Image description" width="800" height="154"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;We additionally select the card for further styling. Remember to include the. (dot)&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;*{
    margin: 0;
    padding: 0;
    font-family: sans-serif;
}


.container{
    height: 100vh;
    background: #f53207;
    color: #340707;
    display: flex;
    align-items: center;
    justify-content: center;
}


.card{
    width: 350px;
    height: 550px;
    box-shadow: 0 0 20px 20px #16010142;
    border-radius: 50px;
}

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

&lt;/div&gt;



&lt;p&gt;Output:&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media.dev.to/cdn-cgi/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2F04h3kmadobrf81c9sw9f.PNG" class="article-body-image-wrapper"&gt;&lt;img src="https://media.dev.to/cdn-cgi/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2F04h3kmadobrf81c9sw9f.PNG" alt="Image description" width="800" height="846"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;As we wind up styling our form, we apply some styling on the inner-card, card-front, card-back, and so on as below.&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;.card{
    width: 350px;
    height: 550px;
    box-shadow: 0 0 20px 20px #16010142;
    border-radius: 50px;
}


.inner-card{
    height: 100%;
    transform: rotateY(180deg);
    transform-style: preserve-3d;
}


.card-front, .card-back{
    position: absolute;
    height: 100%;
    padding: 50px;
    background-color: #931c02;
    box-sizing: border-box;
    backface-visibility:hidden;
    border-radius: 50px;
}


.card-back{
    transform: rotateY(180deg);

}


.card h2{
    font-weight: normal;
    font-size: 24px;
    text-align: center;
    margin-bottom: 20px;
}


.input-button{
    width: 100%;
    background: transparent;
    border: 1px solid #5e0b0b;
    margin: 6px 0;
    height: 32px;
    border-radius: 20px;
    padding: 5px;
    box-sizing: border-box;
    text-align: center;
}


::placeholder{
    color: #fff;
    font-size: 12px;
}


button{
    width: 100%;
    background: transparent;
    border: 1px solid #fff;
    margin: 25px 0 10px;
    height: 32px;
    font-size: 20px;
    border-radius: 20px;
    padding: 2px;
    box-sizing: border-box;
    outline: none;
    color: white;
    cursor: pointer;
}


.submit-btn{
    position: relative;
}


.submit-btn::after{
    content: '\27a4';
    color: #333;
    line-height: 32px;
    font-size: 12px;
    height: 32px;
    width: 32px;
    border-radius: 50%;
    background: #fff;
    position: absolute;
    right: -1px;
    top: -1px;


}


span{
    font-size: 20px;
    margin-left: 10px;
}


.card .btn{
    margin-top: 10px;
}


.card a{
    color: #fff;
    text-decoration: none;
    display: block;
    text-align: center;
    font-size: 13px;
    margin-top: 8px;


}

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

&lt;/div&gt;



&lt;p&gt;To learn more about CSS selectors, properties, colors, and more visit   &lt;a href="https://www.w3schools.com/css/default.asp"&gt;https://www.w3schools.com/css/default.asp&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;The Output:&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media.dev.to/cdn-cgi/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fm7v8h72d1fn8mfook09b.PNG" class="article-body-image-wrapper"&gt;&lt;img src="https://media.dev.to/cdn-cgi/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fm7v8h72d1fn8mfook09b.PNG" alt="Image description" width="800" height="612"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;We need to introduce some Javascript in our form to provide some interactivity, as such, locate the last div and input the script below, &lt;/p&gt;

&lt;p&gt;Here are the final HTML and CSS codes that will indeed make our form flip on click as below&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;&amp;lt;!DOCTYPE html&amp;gt;
&amp;lt;html lang="en"&amp;gt;
&amp;lt;head&amp;gt;
    &amp;lt;meta charset="UTF-8"&amp;gt;
    &amp;lt;meta name="viewport" content="width=device-width, initial-scale=1.0"&amp;gt;
    &amp;lt;title&amp;gt;Online Flipping Form&amp;lt;/title&amp;gt;
    &amp;lt;link rel="stylesheet" href="style.css"&amp;gt;
&amp;lt;/head&amp;gt;
&amp;lt;body&amp;gt;
    &amp;lt;div class="container"&amp;gt;
        &amp;lt;div class="card"&amp;gt;
            &amp;lt;div class="inner-card" id="card"&amp;gt;
                &amp;lt;div class="card-front"&amp;gt;
                    &amp;lt;h2&amp;gt;LOGIN&amp;lt;/h2&amp;gt;

                &amp;lt;form&amp;gt;
                    &amp;lt;input type="email" class="input-box" placeholder="Email" required&amp;gt;


                    &amp;lt;input type="number" class="input-box" placeholder="Phone Number" required&amp;gt;


                    &amp;lt;input type="password" class="input-box" placeholder="password" required&amp;gt;


                    &amp;lt;button type="submit" class="submit-btn"&amp;gt;Submit&amp;lt;/button&amp;gt;


                    &amp;lt;input type="checkbox"&amp;gt;&amp;lt;span&amp;gt;Remember me&amp;lt;/span&amp;gt;


                    &amp;lt;button type="button" class="button" onclick="openLOGIN()"&amp;gt;I am New Here&amp;lt;/button&amp;gt;


                    &amp;lt;a href=""&amp;gt;Forgot password&amp;lt;/a&amp;gt;
                &amp;lt;/div&amp;gt;


                &amp;lt;/form&amp;gt;


                &amp;lt;div class="card-back"&amp;gt;
                    &amp;lt;h2&amp;gt;REGISTER&amp;lt;/h2&amp;gt;


                    &amp;lt;form&amp;gt;
                        &amp;lt;input type="text" class="input-box" placeholder="Full Name" required&amp;gt;


                        &amp;lt;input type="email" class="input-box" placeholder="email" required&amp;gt;


                        &amp;lt;input type="number" class="input-box" placeholder="Phone Number" required&amp;gt;


                        &amp;lt;input type="password" class="input-box" placeholder="password" required&amp;gt;


                        &amp;lt;input type="date" class="input-box" placeholder="DOB" required&amp;gt;


                        &amp;lt;button type="submit" class="submit-btn"&amp;gt;Submit&amp;lt;/button&amp;gt;


                    &amp;lt;input type="checkbox"&amp;gt;&amp;lt;span&amp;gt;Remember me&amp;lt;/span&amp;gt;


                    &amp;lt;button type="button" class="button" ondblclick="openREGISTER()"&amp;gt;I have an Account&amp;lt;/button&amp;gt;


                    &amp;lt;a href=""&amp;gt;Forgot password&amp;lt;/a&amp;gt;


                    &amp;lt;/form&amp;gt;

                &amp;lt;/div&amp;gt;
            &amp;lt;/div&amp;gt;
        &amp;lt;/div&amp;gt;
    &amp;lt;/div&amp;gt;
    &amp;lt;script&amp;gt;
        var card =document.getElementById("card");


        function openLOGIN(){
            card.style.transform = "rotateY(-180deg)";
        }


        function openREGISTER(){
            card.style.transform = "rotateY(0deg)";
        }
    &amp;lt;/script&amp;gt;
&amp;lt;/body&amp;gt;
&amp;lt;/html&amp;gt;


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

&lt;/div&gt;



&lt;p&gt;Our Final CSS File should have the below code.&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;
*{
    margin: 0;
    padding: 0;
    font-family: sans-serif;
}


.container{
    height: 100vh;
    background: #f53207;
    color: #340707;
    display: flex;
    align-items: center;
    justify-content: center;
}


.card{
    width: 350px;
    height: 550px;
    box-shadow: 0 0 20px 20px #16010142;
    border-radius: 50px;
}


.inner-card{
    height: 100%;
    transform: rotateY(180deg);
    transform-style: preserve-3d;
    transition: transform 2s;
}


.card-front, .card-back{
    position: absolute;
    height: 100%;
    padding: 50px;
    background-color: #931c02;
    box-sizing: border-box;
    backface-visibility:hidden;
    border-radius: 50px;
}


.card-back{
    transform: rotateY(180deg);

}


.card h2{
    font-weight: normal;
    font-size: 24px;
    text-align: center;
    margin-bottom: 20px;
}


.input-box{
    width: 100%;
    background: transparent;
    border: 1px solid #5e0b0b;
    margin: 6px 0;
    height: 32px;
    border-radius: 20px;
    padding: 5px;
    box-sizing: border-box;
    text-align: center;
    color: white;
}


::placeholder{
    color: #fff;
    font-size: 12px;
}


button{
    width: 100%;
    background: transparent;
    border: 1px solid #fff;
    margin: 25px 0 10px;
    height: 32px;
    font-size: 20px;
    border-radius: 20px;
    padding: 2px;
    box-sizing: border-box;
    outline: none;
    color: white;
    cursor: pointer;
}


.submit-btn{
    position: relative;
}


.submit-btn::after{
    content: '\27a4';
    color: #333;
    line-height: 32px;
    font-size: 12px;
    height: 32px;
    width: 32px;
    border-radius: 50%;
    background: #fff;
    position: absolute;
    right: -1px;
    top: -1px;


}


span{
    font-size: 20px;
    margin-left: 10px;
}


.card .btn{
    margin-top: 10px;
}


.card a{
    color: #fff;
    text-decoration: none;
    display: block;
    text-align: center;
    font-size: 13px;
    margin-top: 8px;


}

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

&lt;/div&gt;



&lt;p&gt;The output will be as below: &lt;/p&gt;

&lt;p&gt;(Never mind the quality 🤭😀)&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media.dev.to/cdn-cgi/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2F3maa2fszsv1i2ds7lfi5.gif" class="article-body-image-wrapper"&gt;&lt;img src="https://media.dev.to/cdn-cgi/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2F3maa2fszsv1i2ds7lfi5.gif" alt="Image description" width="400" height="225"&gt;&lt;/a&gt;&lt;/p&gt;

</description>
      <category>webdev</category>
      <category>html</category>
      <category>css</category>
      <category>javascript</category>
    </item>
    <item>
      <title>How to create an Online Flipping Form using Plain HTML and CSS</title>
      <dc:creator>George Kingi</dc:creator>
      <pubDate>Sat, 25 May 2024 17:13:42 +0000</pubDate>
      <link>https://dev.to/george_kingi/how-to-create-an-online-flipping-form-using-plain-html-and-css-4ka5</link>
      <guid>https://dev.to/george_kingi/how-to-create-an-online-flipping-form-using-plain-html-and-css-4ka5</guid>
      <description>&lt;p&gt;Almost everyone who has used the Internet has come across Forms, many Internet users who are familiar with forms have come across them when signing up or joining a particular platform, it could be a Gmail sign-up page, Instagram, Facebook, or many other platforms. It is safe to think of a form as a door that can enable access to some information once opened. This article serves both beginners and experts in web development.&lt;/p&gt;

&lt;p&gt;This article will showcase how to create an online flipping form, we will create a sign-up page for new users and a log-in form for existing users. The form will flip on click to the sign-up page if one is a new user and flip on click if one is an existing user.  We will dive in shortly and it will come clear. We will build the structure of the form via HTML,  make our form look good using CSS, and then introduce some Javascript for interactivity. &lt;/p&gt;

&lt;p&gt;To make this more fun, we will break it down it two parts;&lt;br&gt;
Part 1 → Will cover the HTML part. &lt;br&gt;
Part 2 → Will cover the CSS part. Here is a link for part 2. &lt;a href="https://dev.to/george_kingi/the-power-of-css-in-styling-up-forms-o8m"&gt;https://dev.to/george_kingi/the-power-of-css-in-styling-up-forms-o8m&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;Let's grab a seat, shall we?&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media.dev.to/cdn-cgi/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fa2ft2p9p0vtuibc6jlin.gif" class="article-body-image-wrapper"&gt;&lt;img src="https://media.dev.to/cdn-cgi/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fa2ft2p9p0vtuibc6jlin.gif" alt="Image description" width="480" height="478"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;A form is a container that allows users to input data and submit it to a web server for processing. Forms are fundamental in enabling user interaction and data submission.  The &lt;code&gt;&amp;lt;form&amp;gt;&lt;/code&gt; &lt;code&gt;&amp;lt;\form&amp;gt;&lt;/code&gt; element defines a form in HTML.&lt;/p&gt;
&lt;h2&gt;
  
  
  Definition and Uses of Tags
&lt;/h2&gt;

&lt;p&gt;When creating a form, the &lt;code&gt;&amp;lt;form&amp;gt;&lt;/code&gt; element acts as a container for other elements. The space within the form is defined by the &lt;code&gt;&amp;lt;input&amp;gt;&lt;/code&gt; tag which allows users to input data. The &lt;code&gt;&amp;lt;input&amp;gt;&lt;/code&gt; tag is defined by the &lt;code&gt;type&lt;/code&gt; attribute which sets data in the form of &lt;code&gt;text&lt;/code&gt;, &lt;code&gt;number&lt;/code&gt;, &lt;code&gt;date&lt;/code&gt;, &lt;code&gt;image&lt;/code&gt;, &lt;code&gt;reset&lt;/code&gt;, etc, while the &lt;code&gt;placeholder&lt;/code&gt; provides the watermark.&lt;/p&gt;

&lt;p&gt;Examples: &lt;br&gt;
&lt;code&gt;&amp;lt;input type =”text” &amp;gt;&lt;/code&gt;&lt;br&gt;
&lt;code&gt;&amp;lt;input type= “number”&amp;gt;&lt;/code&gt;&lt;/p&gt;

&lt;p&gt;It is possible to define a class within the &lt;code&gt;&amp;lt;input&amp;gt;&lt;/code&gt; element as we can see below, to allow for styling of the contents of the tag. The &lt;code&gt;Placeholder&lt;/code&gt; attribute provides a watermark for the “First name”.&lt;/p&gt;
&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;&amp;lt;input type="text" class="input-box"  placeholder="First name"  required&amp;gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;
&lt;h2&gt;
  
  
  An Overview of the Final Form
&lt;/h2&gt;
&lt;h3&gt;
  
  
  A Preview of the Front and Back of the Form
&lt;/h3&gt;

&lt;p&gt;&lt;a href="https://media.dev.to/cdn-cgi/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Flkvihx27bo7wuevvabkr.PNG" class="article-body-image-wrapper"&gt;&lt;img src="https://media.dev.to/cdn-cgi/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Flkvihx27bo7wuevvabkr.PNG" alt="Image description" width="558" height="869"&gt;&lt;/a&gt;&lt;br&gt;
&lt;a href="https://media.dev.to/cdn-cgi/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Ft05g6idc9ot6nm1b0nkh.PNG" class="article-body-image-wrapper"&gt;&lt;img src="https://media.dev.to/cdn-cgi/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Ft05g6idc9ot6nm1b0nkh.PNG" alt="Image description" width="606" height="856"&gt;&lt;/a&gt;&lt;/p&gt;
&lt;h2&gt;
  
  
  Creating The Online Flipping Form from Scratch
&lt;/h2&gt;

&lt;p&gt;We will go ahead and create an HTML file and a CSS file then link them via the external style. Our code editor for this case will be the VS Code.&lt;/p&gt;

&lt;p&gt;To create the Form follow the below steps;&lt;/p&gt;

&lt;ol&gt;
&lt;li&gt;Create a folder and name it whatever you want.&lt;/li&gt;
&lt;li&gt;Open Vs Code Editor, go to file select open folder then select the folder you just created.&lt;/li&gt;
&lt;li&gt;&lt;p&gt;While on the Vs Code Editor, create a new file and name it &lt;code&gt;index.html&lt;/code&gt;. The file name must have the  extension &lt;code&gt;.html&lt;/code&gt;&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;Create a new file and name it &lt;code&gt;style.css&lt;/code&gt;. file.  The file name must have the extension &lt;code&gt;.css&lt;/code&gt;.&lt;/p&gt;&lt;/li&gt;
&lt;/ol&gt;

&lt;p&gt;You should have something like the snip below, I named my folder “FLIPPING FORM”. &lt;/p&gt;

&lt;p&gt;&lt;a href="https://media.dev.to/cdn-cgi/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fzxr4yoab9gwn0ytj8utn.PNG" class="article-body-image-wrapper"&gt;&lt;img src="https://media.dev.to/cdn-cgi/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fzxr4yoab9gwn0ytj8utn.PNG" alt="Image description" width="570" height="167"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;You do not need to generate the below code line by line, just hold shift and press the &lt;code&gt;!&lt;/code&gt; (exclamation mark ) on the keyboard, and the below code will be auto-generated, change the title to whatever you want,&lt;br&gt;
Then use the link element to connect the HTML and CSS files as below.&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;&amp;lt;!DOCTYPE html&amp;gt;
&amp;lt;html lang="en"&amp;gt;
&amp;lt;head&amp;gt;
    &amp;lt;meta charset="UTF-8"&amp;gt;
    &amp;lt;meta name="viewport" content="width=device-width, initial-scale=1.0"&amp;gt;
    &amp;lt;title&amp;gt;Online Flipping Form&amp;lt;/title&amp;gt;
    &amp;lt;link rel="stylesheet" href="style.css"&amp;gt;
&amp;lt;/head&amp;gt;
&amp;lt;body&amp;gt;

&amp;lt;/body&amp;gt;
&amp;lt;/html&amp;gt;

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

&lt;/div&gt;



&lt;p&gt;The first step, declare three &lt;code&gt;&amp;lt;div&amp;gt;&lt;/code&gt;s with their respective classes as we can see below, and then declare our &lt;code&gt;&amp;lt;form&amp;gt;&lt;/code&gt; tag in the last &lt;code&gt;&amp;lt;div&amp;gt;&lt;/code&gt;. Remember to name the heading of your page and the title which in this case is “Online Flipping Form” and ”‘Login” respectively. &lt;/p&gt;

&lt;p&gt;To note, the class names we declared are random names that will help us when using CSS.&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;&amp;lt;!DOCTYPE html&amp;gt;
&amp;lt;html lang="en"&amp;gt;
&amp;lt;head&amp;gt;
    &amp;lt;meta charset="UTF-8"&amp;gt;
    &amp;lt;meta name="viewport" content="width=device-width, initial-scale=1.0"&amp;gt;
    &amp;lt;title&amp;gt;Online Flipping Form&amp;lt;/title&amp;gt;
    &amp;lt;link rel="stylesheet" href="style.css"&amp;gt;
&amp;lt;/head&amp;gt;
&amp;lt;body&amp;gt;
    &amp;lt;div class="container" &amp;gt;
        &amp;lt;div class="card"&amp;gt;
            &amp;lt;div class="card-front"&amp;gt;
                &amp;lt;h2&amp;gt;Login&amp;lt;/h2&amp;gt;
                &amp;lt;form&amp;gt;
                &amp;lt;/div&amp;gt;
                &amp;lt;/form&amp;gt;
        &amp;lt;/div&amp;gt;


    &amp;lt;/div&amp;gt;

&amp;lt;/body&amp;gt;
&amp;lt;/html&amp;gt;

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

&lt;/div&gt;



&lt;p&gt;Within the &lt;code&gt;&amp;lt;form&amp;gt;&lt;/code&gt; tag, we introduce the   tag which allows users to input data in the form.&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;&amp;lt;body&amp;gt;
    &amp;lt;div class="container" &amp;gt;
        &amp;lt;div class="card"&amp;gt;
            &amp;lt;div class="card-front"&amp;gt;
                &amp;lt;h2&amp;gt;Login&amp;lt;/h2&amp;gt;
                &amp;lt;form&amp;gt;
            &amp;lt;input type="email" class="input-button" placeholder="Email" required&amp;gt;
                &amp;lt;/div&amp;gt;
                &amp;lt;/form&amp;gt;
        &amp;lt;/div&amp;gt;


    &amp;lt;/div&amp;gt;

&amp;lt;/body&amp;gt;


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

&lt;/div&gt;



&lt;p&gt;With the above code, the output on the browser is displayed as below.&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media.dev.to/cdn-cgi/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fth5os9u49i61vqs7452t.PNG" class="article-body-image-wrapper"&gt;&lt;img src="https://media.dev.to/cdn-cgi/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fth5os9u49i61vqs7452t.PNG" alt="Image description" width="800" height="277"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;We go ahead and create more forms as per our target project. See the below code block that will do the trick.&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;&amp;lt;body&amp;gt;
    &amp;lt;div class="container" &amp;gt;
        &amp;lt;div class="card"&amp;gt;
            &amp;lt;div class="card-front"&amp;gt;
                &amp;lt;h2&amp;gt;Login&amp;lt;/h2&amp;gt;
                &amp;lt;form&amp;gt;
      &amp;lt;input type="email" class="input-button" placeholder="Email" required&amp;gt;


   &amp;lt;input type="number" class="input-button" placeholder="Phone Number" required&amp;gt;


    &amp;lt;input type="password" class="input-button" placeholder="Password" required&amp;gt;


    &amp;lt;button type="submit" class="submit-btn"&amp;gt;Submit&amp;lt;/button&amp;gt;


      &amp;lt;input type="checkbox" class="checkbox"&amp;gt;&amp;lt;span&amp;gt;Remember me&amp;lt;/span&amp;gt;


       &amp;lt;button type="button" class="btn"&amp;gt;I am new here&amp;lt;/button&amp;gt;


          &amp;lt;a href=""&amp;gt;Forgot password&amp;lt;/a&amp;gt;


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


    &amp;lt;/div&amp;gt;

&amp;lt;/body&amp;gt;

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

&lt;/div&gt;



&lt;p&gt;With this, the output should be as per the below; Remember, we are creating a flipping form that has two sides, so let's call the below output the front side of the form. &lt;/p&gt;

&lt;p&gt;&lt;a href="https://media.dev.to/cdn-cgi/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fw2vxy39wtvsqc76q9zzk.PNG" class="article-body-image-wrapper"&gt;&lt;img src="https://media.dev.to/cdn-cgi/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fw2vxy39wtvsqc76q9zzk.PNG" alt="Image description" width="800" height="109"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;Let's go ahead and create the back of the form and to do so, we declare another &lt;/p&gt; tag and other  DIVs as below.&lt;br&gt;

&lt;pre class="highlight plaintext"&gt;&lt;code&gt;&amp;lt;!DOCTYPE html&amp;gt;
&amp;lt;html lang="en"&amp;gt;
&amp;lt;head&amp;gt;
    &amp;lt;meta charset="UTF-8"&amp;gt;
    &amp;lt;meta name="viewport" content="width=device-width, initial-scale=1.0"&amp;gt;
    &amp;lt;title&amp;gt;Online Flipping Form&amp;lt;/title&amp;gt;
    &amp;lt;link rel="stylesheet" href="style.css"&amp;gt;
&amp;lt;/head&amp;gt;
&amp;lt;body&amp;gt;
    &amp;lt;div class="container" &amp;gt;
        &amp;lt;div class="card"&amp;gt;
            &amp;lt;div class="card-front"&amp;gt;
                &amp;lt;h2&amp;gt;Login&amp;lt;/h2&amp;gt;
  &amp;lt;form&amp;gt;
    &amp;lt;input type="email" class="input-button" placeholder="Email" required&amp;gt;


   &amp;lt;input type="number" class="input-button" placeholder="Phone Number" required&amp;gt;


    &amp;lt;input type="password" class="input-button" placeholder="Password" required&amp;gt;


   &amp;lt;button type="submit" class="submit-btn"&amp;gt;Submit&amp;lt;/button&amp;gt;


    &amp;lt;input type="checkbox" class="checkbox"&amp;gt;&amp;lt;span&amp;gt;Remember me&amp;lt;/span&amp;gt;


   &amp;lt;button type="button" class="btn"&amp;gt;I am new here&amp;lt;/button&amp;gt;


                    &amp;lt;a href=""&amp;gt;Forgot password&amp;lt;/a&amp;gt;

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


                &amp;lt;div class="card-back"&amp;gt;


                    &amp;lt;h2&amp;gt;Register&amp;lt;/h2&amp;gt;


                    &amp;lt;form&amp;gt;
      &amp;lt;input type="text" class="input-button" placeholder="Full Name" required&amp;gt;


     &amp;lt;input type="email" class="input-button" placeholder="Email" required&amp;gt;


   &amp;lt;input type="number" class="input-button" placeholder="Phone Number" required&amp;gt;


   &amp;lt;input type="password" class="input-button" placeholder="Password" required&amp;gt;


&amp;lt;input type="date" class="input-button" placeholder="Date-of-Birth" required&amp;gt;


   &amp;lt;button type="submit" class="submit-btn"&amp;gt;Submit&amp;lt;/button&amp;gt;


    &amp;lt;input type="checkbox" class="checkbox"&amp;gt;&amp;lt;span&amp;gt;Remember me&amp;lt;/span&amp;gt;


     &amp;lt;button type="button" class="btn"&amp;gt;I have an Account&amp;lt;/button&amp;gt;


         &amp;lt;a href=""&amp;gt;Forgot password&amp;lt;/a&amp;gt;


           &amp;lt;/form&amp;gt;


                &amp;lt;/div&amp;gt;
        &amp;lt;/div&amp;gt;


    &amp;lt;/div&amp;gt;

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


&lt;p&gt;With the above code, our HTML structure is set. The browser should display the below output. &lt;/p&gt;

&lt;p&gt;&lt;a href="https://media.dev.to/cdn-cgi/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fsw9c46rasjae8k3m9s1r.PNG" class="article-body-image-wrapper"&gt;&lt;img src="https://media.dev.to/cdn-cgi/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fsw9c46rasjae8k3m9s1r.PNG" alt="Image description" width="800" height="196"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;This brings us to the end of Part 1 on how to create an online flipping form. Part 2 will focus on how to make our form look good, introduce different styles on all the elements of the form, and finally make the form flip. &lt;/p&gt;

&lt;p&gt;Here is the link to the Part 2:  &lt;a href="https://dev.to/george_kingi/the-power-of-css-in-styling-up-forms-o8m"&gt;https://dev.to/george_kingi/the-power-of-css-in-styling-up-forms-o8m&lt;/a&gt;&lt;/p&gt;

</description>
      <category>webdev</category>
      <category>html</category>
      <category>css</category>
      <category>javascript</category>
    </item>
    <item>
      <title>How to Structure an HTML Document Correctly</title>
      <dc:creator>George Kingi</dc:creator>
      <pubDate>Sun, 19 May 2024 14:42:09 +0000</pubDate>
      <link>https://dev.to/george_kingi/how-to-structure-an-html-document-correctly-4918</link>
      <guid>https://dev.to/george_kingi/how-to-structure-an-html-document-correctly-4918</guid>
      <description>&lt;p&gt;Learning and understanding HTML is like building the foundation and structure of a house, HTML is the foundation of building up webpages and is the key tool for website development. It is almost impossible to discuss HTML without discussing CSS as both languages work hand in hand. &lt;/p&gt;

&lt;p&gt;Once you finish building a home, you furnish it right? Like,  you have to do interior decoration, beautify it, put the sofa set on a particular side of the living room, and so on, in web development, CSS helps us with the decoration and styling of our website. This article is meant for newbies in HTML but will offer some insight to the experts about how well to structure the HTML code. &lt;/p&gt;

&lt;p&gt;There have been different versions of HTML over time and the present version is HTML5 which supports more features that make it possible to do more including Figure &amp;amp; Figcaption, Details, Progress  &amp;amp; Meter&lt;/p&gt;

&lt;p&gt;The Standard HTML5 Structure&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media.dev.to/cdn-cgi/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2F3fnkaowhidkq2lj2owvl.PNG" class="article-body-image-wrapper"&gt;&lt;img src="https://media.dev.to/cdn-cgi/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2F3fnkaowhidkq2lj2owvl.PNG" alt="Image description" width="800" height="324"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;A standard and basic HTML5 document is structured as below:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;&amp;lt;!DOCTYPE html&amp;gt;
&amp;lt;html lang="en"&amp;gt;
&amp;lt;head&amp;gt;
    &amp;lt;meta charset="UTF-8"&amp;gt;
    &amp;lt;meta name="viewport" content="width=device-width, initial-scale=1.0"&amp;gt;
    &amp;lt;title&amp;gt;&amp;lt;/title&amp;gt;
&amp;lt;/head&amp;gt;
&amp;lt;body&amp;gt;
   &amp;lt;!-- the body is the container for the content of a webpage -—&amp;gt;
&amp;lt;/body&amp;gt;
&amp;lt;/html&amp;gt;

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

&lt;/div&gt;



&lt;p&gt;As a beginner, you see the code above and you get the feeling that this is a tall order, you may even be tempted to try to memorize the code or other codes you come across, but the real trick is to calm down, and try to understand the code instead. There is so much free information on the internet, you can google for codes anytime you feel stuck, just to get an idea and an understanding.&lt;/p&gt;

&lt;p&gt;So, stop cramming codes: all the codes in the world are freely accessible on the internet.&lt;/p&gt;

&lt;p&gt;The arrangement of the HTML document above is extremely important as we can highlight different items worth noting:&lt;/p&gt;

&lt;p&gt;&lt;code&gt;&amp;lt;! Doctype html&amp;gt;&lt;/code&gt;: This tag tells the browser that the document type is HTML5. The browser on the other hand can allow for additional features that HTML5 came with including a much faster load time, better media support, and mobile optimization.&lt;/p&gt;

&lt;p&gt;&lt;code&gt;&amp;lt;html lang ="en"&amp;gt;&lt;/code&gt;: This tag is the root element that shows that the webpage is written in HTML5, the lang attribute tells the browser that the HTML language is English (en). The language (lang) can be changed to other languages like French (fr), Spanish (es), and many more languages.&lt;/p&gt;

&lt;p&gt;Discussing the Head Section&lt;br&gt;
A standard head section (which is also referred to as the ‘head element’) has the opening and closing tags &lt;code&gt;&amp;lt;head&amp;gt;&lt;/code&gt; &lt;code&gt;&amp;lt;/head&amp;gt;&lt;/code&gt; and houses the metadata. Metadata is simply the data about the HTML document, however, this data is not visible on the browser, it only helps the browser to interpret the content of the code. Meta tags are self-closing which is equally important.&lt;/p&gt;

&lt;p&gt;Our code below helps the browser interpret the data as below.&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;&amp;lt;meta charset="UTF-8"&amp;gt;
 &amp;lt;meta name="viewport" content="width=device-width, initial-scale=1.0"&amp;gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;What is the purpose of the meta tags?&lt;/p&gt;

&lt;p&gt;`&lt;code&gt;&amp;lt;meta charset = "UTF-8"&amp;gt;&lt;/code&gt;: This tells the browser what set of characters we are using. UTF-8 stands for Unicode Transformation Format and web developers are encouraged to use the UTF-8 character set which covers many characters and symbols.&lt;/p&gt;

&lt;p&gt;&lt;code&gt;&amp;lt;meta name = "viewport" content=" width=device-with" initial-scale=1.0&amp;gt;&lt;/code&gt;: This tag is used to control the layout of websites on different devices such as mobile devices, laptops, etc.&lt;/p&gt;

&lt;p&gt;As a web developer, you can add even more meta tags depending on how you wish your website to perform, for instance, you can set your browser to refresh after every 15 seconds. Below is a meta tag that does the trick.&lt;/p&gt;

&lt;p&gt;&lt;code&gt;&amp;lt;meta http-equiv= "refresh" content="15"&amp;gt;&lt;/code&gt;&lt;/p&gt;

&lt;p&gt;The meta tag can offer more information about the web page description, published date, author, keywords, etc.&lt;/p&gt;

&lt;p&gt;The head section also houses more common elements such as:&lt;/p&gt;

&lt;p&gt;&lt;code&gt;&amp;lt;title&amp;gt;&lt;/code&gt;: A tag that specifies the title of a web page.&lt;/p&gt;

&lt;p&gt;&lt;code&gt;&amp;lt;link&amp;gt;&lt;/code&gt;: A tag that helps to connect the html document with other files&lt;/p&gt;

&lt;p&gt;&lt;code&gt;&amp;lt;script&amp;gt;&lt;/code&gt;: A tag that is used to include JavaScript&lt;/p&gt;

&lt;p&gt;&lt;code&gt;&amp;lt;base&amp;gt;&lt;/code&gt;: A tag that is used to specify the base URL for all relative URLs&lt;/p&gt;

&lt;p&gt;To note, the &lt;code&gt;&amp;lt;body&amp;gt;&lt;/code&gt; tag houses all the website's content including paragraphs, images, lists of items, etc.&lt;/p&gt;

&lt;h3&gt;
  
  
  CSS Presentation
&lt;/h3&gt;

&lt;p&gt;Once our HTML structure is set, we introduce CSS to make the webpage look good, and to do so, we can incorporate any of the three different types of CSS below to link an HTML file with the CSS file. It is important to note that CSS and HTML are so reliant on each other that one can not work on its own without the other. When using CSS, we select the HTML element first then we decide what kind of decoration or styling we use.&lt;/p&gt;

&lt;p&gt;Inline Style: &lt;br&gt;
&lt;code&gt;&amp;lt;tag style=" property: value"&amp;gt;&lt;/code&gt;&lt;/p&gt;

&lt;p&gt;Embedded Style: &lt;/p&gt;

&lt;p&gt;&lt;code&gt;&amp;lt;head&amp;gt;&lt;/code&gt;&lt;br&gt;
&lt;code&gt;&amp;lt;style type="text/css" selector{property:value}&amp;gt;&lt;/code&gt;&lt;br&gt;
&lt;code&gt;&amp;lt;/style&amp;gt;&lt;/code&gt;&lt;br&gt;
     &lt;code&gt;&amp;lt;/head&amp;gt;&lt;/code&gt;&lt;/p&gt;

&lt;p&gt;External Style Sheet:&lt;br&gt;
&lt;code&gt;&amp;lt;head&amp;gt;&lt;/code&gt;&lt;br&gt;
&lt;code&gt;&amp;lt;link rel="stylesheet" type="text/css"href= "style.css"&amp;gt;&lt;/code&gt;&lt;br&gt;
&lt;code&gt;&amp;lt;/head&amp;gt;&lt;/code&gt;&lt;/p&gt;

&lt;h3&gt;
  
  
  Some Important CSS Selectors
&lt;/h3&gt;

&lt;p&gt;W3schools defines CSS selectors as patterns used to select the element(s) you want to style. Below are some important selectors/patterns with different uses.&lt;/p&gt;

&lt;p&gt;&lt;code&gt;*&lt;/code&gt;(asterisk): It selects and applies styling on every element in a webpage.&lt;/p&gt;

&lt;p&gt;&lt;code&gt;&amp;lt;tag *&amp;gt;&lt;/code&gt;: A tag followed by the asterisk selects all elements within a tag&lt;/p&gt;

&lt;p&gt;&lt;code&gt;. class&lt;/code&gt;: Selects all the elements with the class &lt;code&gt;class&lt;/code&gt;. Notice that when selecting a class, we add a dot (.) before the name of the class.&lt;/p&gt;

&lt;p&gt;&lt;code&gt;# id&lt;/code&gt;: Select elements within &lt;code&gt;id&lt;/code&gt; (id in CSS stands for identifier), to select the id, you begin with the # (hash) sign before the name of the id you are selecting.&lt;/p&gt;

&lt;p&gt;&lt;code&gt;tag.class&lt;/code&gt;: All tags with class &lt;code&gt;class&lt;/code&gt;.&lt;/p&gt;

&lt;h3&gt;
  
  
  Importance of Observing The Standard HTML Structure
&lt;/h3&gt;

&lt;p&gt;An HTML document must be structured correctly, if not, it will cause the browser to show contents incorrectly or not show contents at all. It is therefore important to observe and implement the standard structure of an HTML document. The standard structure provides a way to organize the contents of a web page such as images, headings, videos, etc&lt;/p&gt;

&lt;p&gt;The HTML structure also defines things like headings, links and thus giving the document meaning. The sequence of elements used in HTML instructs the browser on how to display content.&lt;/p&gt;

&lt;h3&gt;
  
  
  Conclusion
&lt;/h3&gt;

&lt;p&gt;All browsers support HTML and not just HTML but a well-structured HTML document. Therefore, for web developers, it is crucial to have the HTML document properly organized. Web developers are encouraged to continuously learn how to arrange elements while observing the standard structure. They are also encouraged to learn the coding concepts and code more.&lt;/p&gt;

</description>
    </item>
    <item>
      <title>Ways to Add CSS in HTML: Understanding Inline, Internal &amp; External Styles</title>
      <dc:creator>George Kingi</dc:creator>
      <pubDate>Wed, 24 Apr 2024 21:04:50 +0000</pubDate>
      <link>https://dev.to/george_kingi/exciting-ways-to-add-css-in-html-understanding-inline-internal-external-3pm6</link>
      <guid>https://dev.to/george_kingi/exciting-ways-to-add-css-in-html-understanding-inline-internal-external-3pm6</guid>
      <description>&lt;p&gt;This article provides a comprehensive guide for Web development learners on CSS styling methods. &lt;/p&gt;

&lt;p&gt;CSS stands for Cascading Style Sheet and is defined as a programming language used to design website content. HTML (Hyper Text Mark Up Language) is a programming language for creating websites' structure and content, let's say that it was possible to do some basic styling using HTML. Therefore, both languages work hand in hand. &lt;/p&gt;

&lt;p&gt;**&lt;/p&gt;

&lt;h2&gt;
  
  
  Discussing Types of CSS
&lt;/h2&gt;

&lt;p&gt;** &lt;/p&gt;

&lt;p&gt;There are 3 types of CSS. Below is a highlight of the same;&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Inline Styling&lt;/strong&gt;: This is done when we apply a style directly to a particular HTML element. In other words, we use the style attribute within an HTML Tag. This style overrides Internal and External styles. &lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Embedded/ Internal Styling&lt;/strong&gt;: This is done when we include our style in the HTML document; usually we declare the &lt;code&gt;&amp;lt;style&amp;gt;&lt;/code&gt;  tag at the head section of the HTML file.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;External Styling&lt;/strong&gt;: When we write our style in a separate file with a .css extension, then apply style properties to the file. A &lt;code&gt;&amp;lt;link&amp;gt;&lt;/code&gt; tag is then used to link this file to the HTML file. &lt;/p&gt;

&lt;p&gt;&lt;a href="https://media.dev.to/cdn-cgi/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fadkml35l67jddgojcx44.gif" class="article-body-image-wrapper"&gt;&lt;img src="https://media.dev.to/cdn-cgi/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fadkml35l67jddgojcx44.gif" alt="Image description" width="480" height="270"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;&lt;em&gt;Note: We will be using the VS Code editor and will go ahead to create both the HTML and CSS files represented below:&lt;/em&gt; &lt;/p&gt;

&lt;p&gt;We will also create an HTML code with the title; ‘Types of CSS’ and a paragraph &lt;code&gt;&amp;lt;p&amp;gt;&lt;/code&gt; ’I am learning CSS styles, it’s not easy but I am determined to commit at least 2 hours daily just to learn’. We will also create a CSS file and utilize it later.&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;&amp;lt;!DOCTYPE html&amp;gt;
&amp;lt;html lang="en"&amp;gt;
&amp;lt;head&amp;gt;
    &amp;lt;meta charset="UTF-8"&amp;gt;
    &amp;lt;meta name="viewport" content="width=device-width, initial-scale=1.0"&amp;gt;
    &amp;lt;title&amp;gt;Types of CSS&amp;lt;/title&amp;gt;
    &amp;lt;link rel="stylesheet" href="style.css"&amp;gt;
&amp;lt;/head&amp;gt;
&amp;lt;body&amp;gt;
    &amp;lt;p&amp;gt;I am learning types of CSS, it's not easy but I am determined to commit at
        least 2 hours daily to just learn&amp;lt;/p&amp;gt;
&amp;lt;/body&amp;gt;
&amp;lt;/html&amp;gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;&lt;a href="https://media.dev.to/cdn-cgi/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fh9p6yuat13gqnubjg4no.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media.dev.to/cdn-cgi/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fh9p6yuat13gqnubjg4no.png" alt="Image description" width="399" height="110"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;Below is the output that we get on the browser with no styling. &lt;/p&gt;

&lt;p&gt;&lt;a href="https://media.dev.to/cdn-cgi/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fz5g6fx1pvw9dpkqcm4zr.PNG" class="article-body-image-wrapper"&gt;&lt;img src="https://media.dev.to/cdn-cgi/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fz5g6fx1pvw9dpkqcm4zr.PNG" alt="Image description" width="800" height="253"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;How to Add Internal Styling With Coce Examples&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;We will go ahead and apply internal styling with the code above. Think about it for a moment, how do you change the color of the paragraph? Well, here is how you do it using the internal styling; see the below code.&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;&amp;lt;!DOCTYPE html&amp;gt;
&amp;lt;html lang="en"&amp;gt;
&amp;lt;head&amp;gt;
    &amp;lt;meta charset="UTF-8"&amp;gt;
    &amp;lt;meta name="viewport" content="width=device-width, initial-scale=1.0"&amp;gt;
    &amp;lt;title&amp;gt;Types of CSS&amp;lt;/title&amp;gt;
&amp;lt;/head&amp;gt;
&amp;lt;body&amp;gt;
    &amp;lt;p style="color: red;"&amp;gt;I am learning types of CSS, it's not easy but I am determined to commit at
        least 2 hours daily to just learn&amp;lt;/p&amp;gt;
&amp;lt;/body&amp;gt;
&amp;lt;/html&amp;gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;The Output is as below on the browser;&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media.dev.to/cdn-cgi/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fuibhs109urxp85m375oi.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media.dev.to/cdn-cgi/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fuibhs109urxp85m375oi.png" alt="Image description" width="800" height="254"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;See? We have used the style attribute within the paragraph tag &lt;code&gt;&amp;lt;p&amp;gt;&lt;/code&gt; to make the paragraph color red.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;How to Add Embedded/Internal Styling With Code Examples&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;We will also go ahead and apply the embedded or internal style to our paragraph above; remember, in this type of CSS, we declare the &lt;code&gt;&amp;lt;style&amp;gt;&lt;/code&gt; tag at the head section of our HTML file as per the below, and for that case, let's pick a different color for our paragraph, let's go by color BLUE. It's important to note that all rulesets must have the opening and closing curly braces in CSS.&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;&amp;lt;!DOCTYPE html&amp;gt;
&amp;lt;html lang="en"&amp;gt;
&amp;lt;head&amp;gt;
    &amp;lt;meta charset="UTF-8"&amp;gt;
    &amp;lt;meta name="viewport" content="width=device-width, initial-scale=1.0"&amp;gt;
    &amp;lt;title&amp;gt;Types of CSS&amp;lt;/title&amp;gt;
    &amp;lt;style&amp;gt;
        p{
            color: blue;
        }
    &amp;lt;/style&amp;gt;
&amp;lt;/head&amp;gt;
&amp;lt;body&amp;gt;
    &amp;lt;p style="color: red;"&amp;gt;I am learning types of CSS, it's not easy but I am determined to commit at
        least 2 hours daily to just learn&amp;lt;/p&amp;gt;
&amp;lt;/body&amp;gt;
&amp;lt;/html&amp;gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Below is the final Output of the code above;&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media.dev.to/cdn-cgi/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2F0odo1naj7i99j8gsits0.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media.dev.to/cdn-cgi/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2F0odo1naj7i99j8gsits0.png" alt="Image description" width="800" height="254"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;What do you notice here? Did the color change to Blue? It remained Red, right? This is because Inline styling is much stronger and overrides Internal and External styles. To change the outcome, we will have to eliminate the inline style and when we do, the outcome is as below;&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;&amp;lt;!DOCTYPE html&amp;gt;
&amp;lt;html lang="en"&amp;gt;
&amp;lt;head&amp;gt;
    &amp;lt;meta charset="UTF-8"&amp;gt;
    &amp;lt;meta name="viewport" content="width=device-width, initial-scale=1.0"&amp;gt;
    &amp;lt;title&amp;gt;Types of CSS&amp;lt;/title&amp;gt;
    &amp;lt;style&amp;gt;
        p{
            color: blue;
        }
    &amp;lt;/style&amp;gt;
&amp;lt;/head&amp;gt;
&amp;lt;body&amp;gt;
    &amp;lt;p&amp;gt;I am learning types of CSS, it's not easy but I am determined to commit at
        least 2 hours daily to just learn&amp;lt;/p&amp;gt;
&amp;lt;/body&amp;gt;
&amp;lt;/html&amp;gt;

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

&lt;/div&gt;



&lt;p&gt;&lt;a href="https://media.dev.to/cdn-cgi/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2F6t77rsastpye5asz572p.PNG" class="article-body-image-wrapper"&gt;&lt;img src="https://media.dev.to/cdn-cgi/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2F6t77rsastpye5asz572p.PNG" alt="Image description" width="800" height="164"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;h2&gt;
  
  
  &lt;strong&gt;How to Add External Styling With Code Example&lt;/strong&gt;
&lt;/h2&gt;

&lt;p&gt;Remember we created a file by the name style.css? This is where we will make use of it.  So we will go ahead and open the style.css file and declare our style on the paragraph as below; To note, Internal/Embedded styling is much stronger and overrides External style. So we shall eliminate the internal style in our HTML file. &lt;/p&gt;

&lt;p&gt;We must link our HTML and CSS files together otherwise the styles will not affect&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;&amp;lt;!DOCTYPE html&amp;gt;
&amp;lt;html lang="en"&amp;gt;
&amp;lt;head&amp;gt;
    &amp;lt;meta charset="UTF-8"&amp;gt;
    &amp;lt;meta name="viewport" content="width=device-width, initial-scale=1.0"&amp;gt;
    &amp;lt;title&amp;gt;Types of CSS&amp;lt;/title&amp;gt;
&amp;lt;link rel="stylesheet" href="style.css"&amp;gt;
&amp;lt;/head&amp;gt;
&amp;lt;body&amp;gt;
    &amp;lt;p&amp;gt;I am learning types of CSS, it's not easy but I am determined to commit at
        least 2 hours daily to just learn&amp;lt;/p&amp;gt;
&amp;lt;/body&amp;gt;
&amp;lt;/html&amp;gt;


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

&lt;/div&gt;





&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;p {
    color:darkorange;
}
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;This is our output on the browser.&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media.dev.to/cdn-cgi/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fen048f4nozo2lhczfbhz.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media.dev.to/cdn-cgi/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fen048f4nozo2lhczfbhz.png" alt="Image description" width="800" height="191"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;NOTE: It’s important to note that we have only worked with one Property Type, the Color,  otherwise many CSS Properties and decorations can be applied including background, borders, positioning, etc. &lt;/p&gt;

&lt;p&gt;There is also another type of CSS called Importing Style which is not commonly used. The style is somehow similar to linking; however, the syntax for importing the style sheet is  @import   followed by the keyword URL and the actual URL of the style sheet.&lt;/p&gt;

&lt;p&gt;**&lt;/p&gt;

&lt;h2&gt;
  
  
  Importance of CSS in HTML
&lt;/h2&gt;

&lt;p&gt;**&lt;/p&gt;

&lt;p&gt;CSS is a critical component for web development as it provides the required tools for styling and designing websites. HTML alone provides the structure of a website, and CSS is majorly responsible for making a website visually appealing. &lt;/p&gt;

&lt;p&gt;**&lt;/p&gt;

&lt;h2&gt;
  
  
  Summery
&lt;/h2&gt;

&lt;p&gt;**&lt;/p&gt;

&lt;p&gt;We have discussed the different types of CSS and how they can be used. All these styles are equally important as they style up websites and their contents differently. Developers can make informed decisions on which style to go for and when to use each style. &lt;/p&gt;

&lt;p&gt;We have only discussed the basics of CSS, building an eye-catching website requires a deep understanding of both HTML and CSS. Beginner developers are encouraged to practice the different styles.&lt;/p&gt;

</description>
      <category>webdev</category>
      <category>html</category>
      <category>css</category>
      <category>frontend</category>
    </item>
    <item>
      <title>How To Create a Table in HTML and CSS with Code Examples</title>
      <dc:creator>George Kingi</dc:creator>
      <pubDate>Wed, 17 Apr 2024 22:38:52 +0000</pubDate>
      <link>https://dev.to/george_kingi/how-to-create-a-table-in-html-and-css-with-code-examples-4b6o</link>
      <guid>https://dev.to/george_kingi/how-to-create-a-table-in-html-and-css-with-code-examples-4b6o</guid>
      <description>&lt;p&gt;When you intend to create a structured data set in tabular format, a table will do the trick. This article is just about that as we will dive into it by creating a beautifully designed table. This will serve both beginners and experts in HTML and CSS.  This article will also offer excellent teachings on creating a table using HTML to present tabular information and designing the same using CSS. &lt;/p&gt;

&lt;p&gt;There are so many text editors, but we will use VS Code and create a food timetable. &lt;/p&gt;

&lt;p&gt;Let's go!&lt;/p&gt;

&lt;h4&gt;
  
  
  THE TABLE  DEFINITION in HTML
&lt;/h4&gt;

&lt;p&gt;A Table in HTML can be defined as a tabular representation of data or information in rows and columns. Mastering the art of creating tables is key to the web development journey as they present both text and numerical data clearly and effectively. We will explore different options to unlock the potential of HTML tables. &lt;/p&gt;

&lt;h5&gt;
  
  
  DEFINITION and USES of TABLE TAGS
&lt;/h5&gt;

&lt;p&gt;To create a table in HTML, it is important to understand the table tags. The &lt;code&gt;&amp;lt;table&amp;gt;&lt;/code&gt; tag is the most important as it acts as a container for the entire table. A table is made up of 3 segments which include;&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;Table header &lt;code&gt;&amp;lt;thead&amp;gt;&lt;/code&gt;: Refers to the cells and data written in at the top of the table. &lt;/li&gt;
&lt;li&gt;Table body &lt;code&gt;&amp;lt;tbody&amp;gt;&lt;/code&gt;: Refers to the main content of data in the table&lt;/li&gt;
&lt;li&gt;Table footer &lt;code&gt;&amp;lt;tfoot&amp;gt;&lt;/code&gt;: Refers to the cells and data written at the bottom of the table&lt;/li&gt;
&lt;/ul&gt;

&lt;h5&gt;
  
  
  Other Common HTML Table Tags:
&lt;/h5&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;code&gt;&amp;lt;tr&amp;gt;&lt;/code&gt;: Used to represent table rows&lt;/li&gt;
&lt;li&gt;
&lt;code&gt;&amp;lt;th&amp;gt;&lt;/code&gt;: Used to represent table headings&lt;/li&gt;
&lt;li&gt;
&lt;code&gt;&amp;lt;td&amp;gt;&lt;/code&gt;: Used to represent table data cells&lt;/li&gt;
&lt;/ul&gt;

&lt;h5&gt;
  
  
  AN OVERVIEW of the FINAL PROJECT TABLE OUTPUT
&lt;/h5&gt;

&lt;h5&gt;
  
  
  PREVIEW of the FINAL TABLE OUTPUT
&lt;/h5&gt;

&lt;p&gt;&lt;a href="https://media.dev.to/cdn-cgi/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Flh3jkiqros5kup3n3x0i.jpg" class="article-body-image-wrapper"&gt;&lt;img src="https://media.dev.to/cdn-cgi/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Flh3jkiqros5kup3n3x0i.jpg" alt="This is the final look of the table we will create." width="800" height="531"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;h5&gt;
  
  
  PREVIEW of the DIFFERENT  STYLES APPLIED on the FINAL TABLE OUTPUT
&lt;/h5&gt;

&lt;p&gt;&lt;a href="https://media.dev.to/cdn-cgi/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2F7ttaemzkivmcaqoa4ngn.PNG" class="article-body-image-wrapper"&gt;&lt;img src="https://media.dev.to/cdn-cgi/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2F7ttaemzkivmcaqoa4ngn.PNG" alt="This is the final outlook of the table with some CSS designs" width="800" height="438"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;h5&gt;
  
  
  DISCUSSING the HTML TABLE SYNTAX
&lt;/h5&gt;

&lt;p&gt;In HTML and CSS, syntax can be defined as the order in which elements are written. Every programming language must observe the syntax rules. The elements that make up a table are the tags that create the structure of a table. &lt;/p&gt;

&lt;h5&gt;
  
  
  CREATING the FOOD TIME TABLE FROM SCRATCH
&lt;/h5&gt;

&lt;p&gt;This is where the real work begins, it is important to come up with a title and a heading for your table, the below code will do the trick.&lt;/p&gt;

&lt;h5&gt;
  
  
  CREATING the TITLE of the PAGE, TABLE HEADING and TABLE TAG
&lt;/h5&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;code&gt;&amp;lt;title&amp;gt;&lt;/code&gt; tag creates the title: FOOD TIME TABLE&lt;/li&gt;
&lt;li&gt; &lt;code&gt;&amp;lt;h2&amp;gt;&lt;/code&gt; tag creates the heading: AROMA LA CAFE’ FOOD TIMETABLE&lt;/li&gt;
&lt;li&gt;
&lt;code&gt;&amp;lt;table&amp;gt;&lt;/code&gt; tag is the container of the entire table.
&lt;/li&gt;
&lt;/ul&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;&amp;lt;!DOCTYPE html&amp;gt;
&amp;lt;html lang="en"&amp;gt;
&amp;lt;head&amp;gt;
    &amp;lt;meta charset="UTF-8"&amp;gt;
    &amp;lt;meta name="viewport" content="width=device-width, initial-scale=1.0"&amp;gt;
    &amp;lt;title&amp;gt;FOOD TIME TABLE&amp;lt;/title&amp;gt;
&amp;lt;/head&amp;gt;
&amp;lt;h2&amp;gt;AROMA LA CAFE' FOOD TIMETABLE&amp;lt;/h2&amp;gt;
&amp;lt;body&amp;gt;
    &amp;lt;table&amp;gt;



    &amp;lt;/table&amp;gt;

&amp;lt;/body&amp;gt;
&amp;lt;/html&amp;gt;

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

&lt;/div&gt;



&lt;p&gt;Below is the output of the above HTML code. It is important to note that the table is already created by the &lt;code&gt;&amp;lt;table&amp;gt;&lt;/code&gt; tag but we may need help to view it as we are yet to define the rows and columns.&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media.dev.to/cdn-cgi/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fcs4jrxb5fng4z6q5j7bx.PNG" class="article-body-image-wrapper"&gt;&lt;img src="https://media.dev.to/cdn-cgi/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fcs4jrxb5fng4z6q5j7bx.PNG" alt="Image description" width="686" height="298"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;h5&gt;
  
  
  PRACTICAL USE of TABLE TAGS
&lt;/h5&gt;

&lt;p&gt;Table head &lt;thead&gt; contains the Table row &lt;code&gt;&amp;lt;tr&amp;gt;&lt;/code&gt;, the table heading is defined by the &lt;code&gt;&amp;lt;th&amp;gt;&lt;/code&gt;tag, 

&lt;p&gt;&lt;code&gt;&amp;lt;tbody&amp;gt;&lt;/code&gt; contains the  &lt;code&gt;&amp;lt;tr&amp;gt;&lt;/code&gt; and Table data &lt;code&gt;&amp;lt;td&amp;gt;&lt;/code&gt;. It is important to observe the order and arrangement of these tags as they are the key to displaying structural content.&lt;br&gt;
&lt;/p&gt;

&lt;pre class="highlight plaintext"&gt;&lt;code&gt;&amp;lt;h2&amp;gt;AROMA LA CAFE' FOOD TIMETABLE&amp;lt;/h2&amp;gt;
&amp;lt;body&amp;gt;
    &amp;lt;table&amp;gt;
        &amp;lt;thead&amp;gt;
            &amp;lt;tr&amp;gt;
                &amp;lt;th&amp;gt;DAY&amp;lt;/th&amp;gt;
                &amp;lt;th&amp;gt;BREAKFAST&amp;lt;/th&amp;gt;
                &amp;lt;th&amp;gt;LUNCH&amp;lt;/th&amp;gt;
                &amp;lt;th&amp;gt;SUPPER&amp;lt;/th&amp;gt;
                &amp;lt;th&amp;gt;SNACK&amp;lt;/th&amp;gt;
            &amp;lt;/tr&amp;gt;
        &amp;lt;/thead&amp;gt;
        &amp;lt;tbody&amp;gt;
            &amp;lt;tr&amp;gt;
                &amp;lt;td&amp;gt;MONDAY&amp;lt;/td&amp;gt;
                &amp;lt;td&amp;gt;Bone Soup&amp;lt;/td&amp;gt;
                &amp;lt;td&amp;gt;Ugali &amp;amp; Beef&amp;lt;/td&amp;gt;
                &amp;lt;td&amp;gt;Rice &amp;amp; Beans&amp;lt;/td&amp;gt;
                &amp;lt;td&amp;gt;Orange&amp;lt;/td&amp;gt;
            &amp;lt;/tr&amp;gt;
            &amp;lt;tr&amp;gt;
                &amp;lt;td&amp;gt;TUESDAY&amp;lt;/td&amp;gt;
                &amp;lt;td&amp;gt;Cappucino &amp;amp; Samosa&amp;lt;/td&amp;gt;
                &amp;lt;td&amp;gt;Vegetable Rice&amp;lt;/td&amp;gt;
                &amp;lt;td&amp;gt;Sweet Potatoes&amp;lt;/td&amp;gt;
                &amp;lt;td&amp;gt;Apple&amp;lt;/td&amp;gt;
            &amp;lt;/tr&amp;gt;

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



&lt;p&gt;With the above code, we can see the below output. &lt;/p&gt;

&lt;p&gt;&lt;a href="https://media.dev.to/cdn-cgi/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fheuk3wl5wm1esykzj852.PNG" class="article-body-image-wrapper"&gt;&lt;img src="https://media.dev.to/cdn-cgi/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fheuk3wl5wm1esykzj852.PNG" alt="Image description" width="709" height="201"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;Finally, our last HTML syntax is shown below.&lt;br&gt;
&lt;/p&gt;

&lt;pre class="highlight plaintext"&gt;&lt;code&gt;&amp;lt;tr&amp;gt;
                &amp;lt;td&amp;gt;WEDNESDAY&amp;lt;/td&amp;gt;
                &amp;lt;td&amp;gt;Green Tea Samosa&amp;lt;/td&amp;gt;
                &amp;lt;td&amp;gt;Fries&amp;lt;/td&amp;gt;
                &amp;lt;td&amp;gt;Brown Bread Smashed Potatoes&amp;lt;/td&amp;gt;
                &amp;lt;td&amp;gt;Fresh Juice&amp;lt;/td&amp;gt;
            &amp;lt;/tr&amp;gt;
            &amp;lt;tr&amp;gt;
                &amp;lt;td&amp;gt;THURSDAY&amp;lt;/td&amp;gt;
                &amp;lt;td&amp;gt;Mahamri Mbaazi&amp;lt;/td&amp;gt;
                &amp;lt;td&amp;gt;Rice Beef&amp;lt;/td&amp;gt;
                &amp;lt;td&amp;gt;Fries and Chicken&amp;lt;/td&amp;gt;
                &amp;lt;td&amp;gt;Avocado&amp;lt;/td&amp;gt;
            &amp;lt;/tr&amp;gt;
            &amp;lt;tr&amp;gt;
                &amp;lt;td&amp;gt;FRIDAY&amp;lt;/td&amp;gt;
                &amp;lt;td&amp;gt;Boiled Maize&amp;lt;/td&amp;gt;
                &amp;lt;td&amp;gt;Pilau&amp;lt;/td&amp;gt;
                &amp;lt;td&amp;gt;Ugali Vegetable&amp;lt;/td&amp;gt;
                &amp;lt;td&amp;gt;Watermelon&amp;lt;/td&amp;gt;
            &amp;lt;/tr&amp;gt;
            &amp;lt;tr&amp;gt;
                &amp;lt;td&amp;gt;SATURDAY&amp;lt;/td&amp;gt;
                &amp;lt;td&amp;gt;Porridge&amp;lt;/td&amp;gt;
                &amp;lt;td&amp;gt;Biriani&amp;lt;/td&amp;gt;
                &amp;lt;td&amp;gt;Steamed Cabbage&amp;lt;/td&amp;gt;
                &amp;lt;td&amp;gt;Mango&amp;lt;/td&amp;gt;
            &amp;lt;/tr&amp;gt;
            &amp;lt;tr&amp;gt;
                &amp;lt;td&amp;gt;SUNDAY&amp;lt;/td&amp;gt;
                &amp;lt;td&amp;gt;Peanuts&amp;lt;/td&amp;gt;
                &amp;lt;td&amp;gt;Chicken Breast Ugali&amp;lt;/td&amp;gt;
                &amp;lt;td&amp;gt;Fish Stew&amp;lt;/td&amp;gt;
                &amp;lt;td&amp;gt;Pinneaple&amp;lt;/td&amp;gt;
            &amp;lt;/tr&amp;gt;
        &amp;lt;/tbody&amp;gt;

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



&lt;pre class="highlight plaintext"&gt;&lt;code&gt;&amp;lt;/table&amp;gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;p&gt;And finally, our table is fully created with no borders and zero styling. CSS will play a major role in beautifying our table. &lt;/p&gt;

&lt;p&gt;&lt;a href="https://media.dev.to/cdn-cgi/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fdg35fi782ofowu3dxwlk.PNG" class="article-body-image-wrapper"&gt;&lt;img src="https://media.dev.to/cdn-cgi/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fdg35fi782ofowu3dxwlk.PNG" alt="Image description" width="700" height="344"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;h5&gt;
  
  
  INTRODUCING CSS to STYLE UP our TABLE
&lt;/h5&gt;

&lt;h5&gt;
  
  
  What is CSS
&lt;/h5&gt;

&lt;p&gt;CSS is a language that helps developers style their web pages by adding designs to elements like colors, font type, borders, padding, etc.&lt;/p&gt;

&lt;h5&gt;
  
  
  DISCUSSING DIFFERENT  TYPES  of STYLES in CSS
&lt;/h5&gt;

&lt;p&gt;There are 3 main types of CSS that we will incorporate as we progress&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;Inline Styling: It's done when we apply a style directly to a particular HTML element &lt;/li&gt;
&lt;li&gt;Embedded Styling: It's done when we include our style in the HTML document&lt;/li&gt;
&lt;li&gt;External Styling: Is the most commonly used style where we write our style in a separate file and link it with the HTML file. We will utilize this style to design our table.&lt;/li&gt;
&lt;/ul&gt;

&lt;h5&gt;
  
  
  APPLICATION and IMPLEMENTATION of DIFFERENT DESIGNS and STYLES on TABLES
&lt;/h5&gt;

&lt;p&gt;We will go ahead and create a file name by the name ‘style.css’  and link it with the HTML file as per below:&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media.dev.to/cdn-cgi/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fvwirae5vz5198ldmxgd5.PNG" class="article-body-image-wrapper"&gt;&lt;img src="https://media.dev.to/cdn-cgi/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fvwirae5vz5198ldmxgd5.PNG" alt="Image description" width="710" height="182"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;h5&gt;
  
  
  DISCUSSING the ASTERIC *, MARGIN, BORDER, PADDING, and OTHER CSS STYLES
&lt;/h5&gt;

&lt;p&gt;In CSS, the * (asterisk) is known as the Universal selector and is used to select all items in the HTML file while the curly braces mark the beginning of the CSS code as displayed below. &lt;/p&gt;

&lt;p&gt;In our code below, we introduce the “Margin property” which defines the space and gaps between an element with other elements&lt;/p&gt;

&lt;p&gt;The “Padding property” defines the space and gaps between an element and the border of the element.&lt;/p&gt;

&lt;p&gt;It is possible to style up elements by declaring them followed by the curly braces, which hold the property  name and property value {: ;} &lt;/p&gt;

&lt;p&gt;For instance, in our case, the body is the element, background-color is the property name while deeppink is the property value. This is how to style up the body with the different CSS styles as seen below.&lt;/p&gt;

&lt;p&gt;To style up the table, the code below will also do the trick and display the below output. &lt;/p&gt;

&lt;p&gt;You can learn more about nth-child here.&lt;a href="https://www.freecodecamp.org/news/nth-child-vs-nth-of-type-selector-in-css/"&gt;www.freecodecamp.org&lt;/a&gt;&lt;br&gt;
&lt;/p&gt;

&lt;pre class="highlight plaintext"&gt;&lt;code&gt;*{margin: auto; padding: 20px; font-family: Helvetica;}

body{display: grid; place-items:center;}

table {padding: 5px; border-collapse: collapse;}
&lt;/code&gt;&lt;/pre&gt;



&lt;h5&gt;
  
  
  PREVIEW of the OUTPUT of the ABOVE CODE
&lt;/h5&gt;

&lt;p&gt;&lt;a href="https://media.dev.to/cdn-cgi/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fhgsgx35wlgcj9jue19nk.PNG" class="article-body-image-wrapper"&gt;&lt;img src="https://media.dev.to/cdn-cgi/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fhgsgx35wlgcj9jue19nk.PNG" alt="Image description" width="716" height="398"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;h5&gt;
  
  
  MORE CSS STYLES and FINAL OUTPUT
&lt;/h5&gt;



&lt;pre class="highlight plaintext"&gt;&lt;code&gt;th {background-color:rgb(22, 22, 114); color: gold; text-align: center;}

table, td, tr {box-shadow: -6px 12px 12px -6px rgb(95,8, 55);
padding: 20px; text-align: center;}

h2, td, h4{color: black;}
&lt;/code&gt;&lt;/pre&gt;



&lt;p&gt;&lt;a href="https://media.dev.to/cdn-cgi/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2F4fnrsv6gejo1jc1urwfb.PNG" class="article-body-image-wrapper"&gt;&lt;img src="https://media.dev.to/cdn-cgi/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2F4fnrsv6gejo1jc1urwfb.PNG" alt="Image description" width="713" height="396"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;h5&gt;
  
  
  MORE CSS STYLES and FINAL OUTPUT
&lt;/h5&gt;

&lt;p&gt;Let’s go ahead and change the the color to “blue” and remove the background color to the default color &lt;br&gt;
White:&lt;/p&gt;

&lt;h5&gt;
  
  
  OUTPUT
&lt;/h5&gt;

&lt;p&gt;&lt;a href="https://media.dev.to/cdn-cgi/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fj7gamc2wc5ssxx6fwp09.PNG" class="article-body-image-wrapper"&gt;&lt;img src="https://media.dev.to/cdn-cgi/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fj7gamc2wc5ssxx6fwp09.PNG" alt="Image description" width="707" height="410"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;h5&gt;
  
  
  CSS HOVER, TRANSFORM, TRANSITION, and Some ANIMATIONS and HOW to APPLY THEM on TABLES
&lt;/h5&gt;

&lt;p&gt;It is possible to change the colors of the items in the table rows using the nth-child property. In this context, The table is regarded as the parent while the rows are the children. Since the arrangement of the rows can be in odd or even numbers, we must declare the same as per below: &lt;/p&gt;

&lt;p&gt;CSS hover is a property used to select items when you mouse over them, the effect is a great way to express visual interactivity.  &lt;/p&gt;

&lt;p&gt;&lt;a href="https://media.dev.to/cdn-cgi/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2F7agb06wvcgxd3e7883w8.PNG" class="article-body-image-wrapper"&gt;&lt;img src="https://media.dev.to/cdn-cgi/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2F7agb06wvcgxd3e7883w8.PNG" alt="Image description" width="666" height="43"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media.dev.to/cdn-cgi/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2F0vbdahclv1to32wfb974.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media.dev.to/cdn-cgi/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2F0vbdahclv1to32wfb974.png" alt="Image description" width="682" height="397"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;h5&gt;
  
  
  Preview of the hover property;
&lt;/h5&gt;



&lt;pre class="highlight plaintext"&gt;&lt;code&gt;tr:nth-child(even){background-color: #51517f;}

tr:nth-child(even):hover{background-color: #412f84 ;
    transform: scale(1.5); transition: transform 2000ms ease}

tr:nth-child(odd):hover{background-color: #1c536c; 
    transform: scale(1.5); transition: transform 2000ms ease;}
&lt;/code&gt;&lt;/pre&gt;



&lt;h5&gt;
  
  
  IMPORTANCE of TABLES in WEB DEVELOPMENT
&lt;/h5&gt;

&lt;ul&gt;
&lt;li&gt;Tables are a great way to represent data systematically to users&lt;/li&gt;
&lt;li&gt;Tables offer easy-to-read and organised tabular data&lt;/li&gt;
&lt;li&gt;Tables can be used to create a database&lt;/li&gt;
&lt;/ul&gt;

&lt;h5&gt;
  
  
  CONCLUSION
&lt;/h5&gt;

&lt;p&gt;It is safe to say that learning to create a simple table is very important to any web developer as It represents complex data organized in rows and columns as well as gives a great foundation for web development. &lt;/p&gt;

&lt;p&gt;Tabular data is easy to understand at a glance. Developers must understand clearly that tables are essential tools in all aspects of web development. It is also important to understand the basic concepts of CSS for designing and styling the table or the website as a whole.&lt;/p&gt;


&lt;/thead&gt;&lt;/p&gt;

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