<?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: Henrietta Okechukwu O (Hariet)</title>
    <description>The latest articles on DEV Community by Henrietta Okechukwu O (Hariet) (@henrietta_hariet).</description>
    <link>https://dev.to/henrietta_hariet</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%2F1207361%2Fc65d8ec9-197a-4dd4-88c5-360402cc90e1.png</url>
      <title>DEV Community: Henrietta Okechukwu O (Hariet)</title>
      <link>https://dev.to/henrietta_hariet</link>
    </image>
    <atom:link rel="self" type="application/rss+xml" href="https://dev.to/feed/henrietta_hariet"/>
    <language>en</language>
    <item>
      <title>Navigating the Web vs. the Internet: What's the Difference?</title>
      <dc:creator>Henrietta Okechukwu O (Hariet)</dc:creator>
      <pubDate>Tue, 23 Jan 2024 05:03:59 +0000</pubDate>
      <link>https://dev.to/henrietta_hariet/navigating-the-web-vs-the-internet-whats-the-difference-2e5o</link>
      <guid>https://dev.to/henrietta_hariet/navigating-the-web-vs-the-internet-whats-the-difference-2e5o</guid>
      <description>&lt;p&gt;In today's digital world, the terms "web" and "internet" are often used to mean the same thing, but they have different meanings.&lt;/p&gt;

&lt;p&gt;Understanding the difference between the "web" and the "internet" can be tricky, but it's important to understand the differences between them to better navigate and utilize the online world effectively.&lt;/p&gt;

&lt;p&gt;In this article, we will explain these concepts and provide a clear understanding of each term.&lt;/p&gt;

&lt;h2&gt;
  
  
  Meet the Internet
&lt;/h2&gt;

&lt;p&gt;The internet is like a giant connection of computers and devices all over the world. It's the foundation that lets us access tons of information and communicate with people globally.&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%2F20rf5oji3vcnsqf0i9bn.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%2F20rf5oji3vcnsqf0i9bn.jpg" alt="Internet Infrastructure" width="800" height="604"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;h2&gt;
  
  
  What's the Web?
&lt;/h2&gt;

&lt;p&gt;Now, meet the World Wide Web, simply known as the Web – a software application within the internet. It serves as our gateway to exploring websites, sending emails, and utilizing various online services. &lt;/p&gt;

&lt;p&gt;It is made up of interconnected documents and resources that we can access through a web 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%2Fnveptzmsxutzqeama2uf.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%2Fnveptzmsxutzqeama2uf.jpg" alt="World Wide Web" width="800" height="800"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;h2&gt;
  
  
  Let's Talk Websites
&lt;/h2&gt;

&lt;p&gt;A website is a bunch of related web pages and content hosted on a server.&lt;br&gt;
To view a website, you need a web browser (like Chrome or Firefox) and a specific domain name such as &lt;a href="http://www.example.com"&gt;www.example.com&lt;/a&gt; or &lt;a href="http://www.google.com"&gt;www.google.com&lt;/a&gt;.&lt;/p&gt;

&lt;p&gt;In simple terms, think of the  &lt;strong&gt;internet&lt;/strong&gt; as a massive network connecting everyone. The &lt;strong&gt;web&lt;/strong&gt; serves as our tool to navigate this network, and &lt;strong&gt;websites&lt;/strong&gt; are the distinctive places we explore on the web.&lt;/p&gt;

&lt;p&gt;Let's call this the "Digital Trio": &lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;strong&gt;Internet&lt;/strong&gt; (The Extensive Network)&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Web&lt;/strong&gt; (Our Navigational Tool)&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Websites&lt;/strong&gt; (Specific Destinations)&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%2Fa3mgqmrkqdwmglgf4sju.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%2Fa3mgqmrkqdwmglgf4sju.png" alt="Website Structure" width="800" height="383"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;h2&gt;
  
  
  Functioning of the web and the internet
&lt;/h2&gt;

&lt;p&gt;To grasp the functioning of the web and internet more easily, let's break it down step by step:&lt;/p&gt;

&lt;ol&gt;
&lt;li&gt;&lt;p&gt;Looking around (Visualization)&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;Locating the address (Domain name resolution)&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;Setting up the online connection&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;Fetching web content&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;Handling the request&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;Sending the reply&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;Making the webpage&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;Displaying the webpage&lt;/p&gt;&lt;/li&gt;
&lt;/ol&gt;

&lt;h2&gt;
  
  
  How It All Works
&lt;/h2&gt;

&lt;p&gt;Let's break down how the web and internet work together:&lt;/p&gt;

&lt;h3&gt;
  
  
  1. Looking Around (Visualization)
&lt;/h3&gt;

&lt;p&gt;Imagine the internet as a huge library, each website as a book, and your web browser as the friendly librarian helping you find and read these "books." You type a website address, hit enter, and voila! The librarian (your browser) fetches the "book" (web page) from the shelf (server) and shows it on your screen.&lt;/p&gt;

&lt;h3&gt;
  
  
  2. Locating the Address (Domain Name Resolution)
&lt;/h3&gt;

&lt;p&gt;Assume you're looking for a book in an online library. When you enter a website name (such as &lt;a href="http://www.example.com"&gt;www.example.com&lt;/a&gt;), your browser acts like a librarian trying to find the right shelf. The unique numerical code (Internet Protocol, or IP address) is like the specific shelf where that website's information is stored.&lt;/p&gt;

&lt;p&gt;To find this shelf, your browser consults a special server known as the Domain Name System (DNS). It's like asking the library's catalog system for the exact location (IP address) of the shelf.&lt;/p&gt;

&lt;p&gt;The DNS server then provides the IP address, acting as your librarian guiding you to the correct shelf in the library of the internet.&lt;/p&gt;

&lt;h3&gt;
  
  
  3. Setting Up the Online Connection
&lt;/h3&gt;

&lt;p&gt;In the world of the internet, TCP/IP is like the magic formula that makes everything run smoothly. It's short for "Transmission Control Protocol/Internet Protocol."&lt;/p&gt;

&lt;p&gt;Let's simplify:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;TCP ensures that data reaches its destination accurately and in the right order.&lt;/li&gt;
&lt;li&gt;IP takes care of guiding data across the vast internet.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;These two protocols work together seamlessly, making it possible for data to travel between any two points on the globe. This teamwork is what turns the internet into a global network.&lt;/p&gt;

&lt;p&gt;Unlike a central control system, the internet is like a collaborative effort. It involves various Internet Service Providers (ISPs) and networks working together to keep things running smoothly.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Wondering what an ISP is?&lt;/strong&gt; Well, it stands for Internet Service Provider. ISPs are companies that offer you access to the internet. They connect to the internet backbone, which is like the heart of the internet's infrastructure. This connection is what enables ISPs to provide you with internet access.&lt;/p&gt;

&lt;p&gt;There are different types of ISPs, like cable, DSL, fiber optic, and satellite providers. Some ISPs even offer extra services such as email, web hosting, and VoIP. These providers play a key role in delivering the data from the web to your computer.&lt;/p&gt;

&lt;p&gt;Now, when you want to visit a website, your web browser uses the IP address it got from your ISP to connect to the device hosting that website. This connection, guided by the TCP/IP protocol, ensures safe data transmission and efficient routing across the internet.&lt;/p&gt;

&lt;h3&gt;
  
  
  4. Fetching Web Content:
&lt;/h3&gt;

&lt;p&gt;When you enter a website, a silent collaboration unfolds between the web server (where web pages reside) and your browser. This interaction relies on protocols like HTTP (Hypertext Transfer Protocol) for seamless communication.&lt;/p&gt;

&lt;h4&gt;
  
  
  How It Works:
&lt;/h4&gt;

&lt;ul&gt;
&lt;li&gt;&lt;p&gt;&lt;strong&gt;Getting Connected:&lt;/strong&gt; Your browser connects with the web server, setting up a communication line.&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;&lt;strong&gt;HTTP Request:&lt;/strong&gt; Imagine your browser asking for a specific item in a store—it's like that. For example, requesting the content of a specific webpage.&lt;/p&gt;&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;This request might include extras like the type of browser you're using or your preferred language&lt;/p&gt;

&lt;p&gt;In this process, your web browser pulls the content from the web server, creating a dialogue that lets you explore and enjoy the web pages.&lt;/p&gt;

&lt;h3&gt;
  
  
  5. Handling the Request
&lt;/h3&gt;

&lt;p&gt;Once the server gets your HTTP request, it processes it and picks out the requested web page from its storage.&lt;/p&gt;

&lt;h3&gt;
  
  
  6. Sending the Reply
&lt;/h3&gt;

&lt;p&gt;When your web browser seeks content, the server replies using the HTTP protocol. This reply packs all the elements needed for the webpage—HTML, CSS, and resources like images or JavaScript files.&lt;/p&gt;

&lt;h4&gt;
  
  
  How It Happens:
&lt;/h4&gt;

&lt;ul&gt;
&lt;li&gt;&lt;p&gt;&lt;strong&gt;Building the Webpage:&lt;/strong&gt; The server assembles required files—HTML for structure, CSS for style, and additional resources.&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;&lt;strong&gt;Packet Transmission:&lt;/strong&gt; To ensure secure data transfer, these files break down into smaller packets traveling through the internet. Each packet carries different sections of the website's content.&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;&lt;strong&gt;Internet Journey:&lt;/strong&gt; Packets journey through the internet, traveling network to network until they reach your web browser.&lt;/p&gt;&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;This methodical packet-sending process fulfills the browser's request, guaranteeing that all the necessary files reach your device. This journey is what lets you access and enjoy the webpage.&lt;/p&gt;

&lt;h3&gt;
  
  
  7. Making the Web Page
&lt;/h3&gt;

&lt;p&gt;When you visit a webpage, your browser gets a response from the server, telling it how to display the page. This reply packs in all the files—HTML, CSS, and crucial resources.&lt;/p&gt;

&lt;h3&gt;
  
  
  What Comes Next:
&lt;/h3&gt;

&lt;ul&gt;
&lt;li&gt;&lt;p&gt;&lt;strong&gt;Understanding the Response:&lt;/strong&gt; Your browser reads the server's response, figuring out HTML to lay out the page's structure.&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;&lt;strong&gt;Adding Styles:&lt;/strong&gt; While processing HTML, the browser applies styles from the CSS, making the webpage visually appealing.&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;&lt;strong&gt;Making It Interactive:&lt;/strong&gt; JavaScript steps in, bringing interactivity like clickable buttons or animations for a user-friendly experience.&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;&lt;strong&gt;Building the Page:&lt;/strong&gt; Finally, your web browser turns the composed webpage into a visual treat, showing content, style, and interactive features. This display is what lets you interact with the webpage—click buttons, scroll, type, you name it.&lt;/p&gt;&lt;/li&gt;
&lt;/ul&gt;

&lt;h3&gt;
  
  
  8. Displaying the Webpage
&lt;/h3&gt;

&lt;p&gt;Voila! The fully processed webpage lands on your device screen. You can dive in—click on links, fill out forms, and perform other supported actions.&lt;/p&gt;

&lt;h2&gt;
  
  
  Conclusion
&lt;/h2&gt;

&lt;p&gt;This rundown demystifies the intricate process of the web and the internet, making sure web content arrives seamlessly. From translating user-friendly addresses to numerical IP addresses, setting up connections, grabbing web content, to building web pages and making user interactions possible—it's a coordinated blend of internet infrastructure and web protocols, ensuring smooth access to global information.&lt;/p&gt;

</description>
      <category>webdev</category>
      <category>internet</category>
      <category>learning</category>
      <category>beginners</category>
    </item>
    <item>
      <title>Introduction to SVG in HTML5: Creating basic shapes</title>
      <dc:creator>Henrietta Okechukwu O (Hariet)</dc:creator>
      <pubDate>Tue, 26 Dec 2023 20:29:35 +0000</pubDate>
      <link>https://dev.to/henrietta_hariet/introduction-to-svg-in-html5-creating-basic-shapes-4l2p</link>
      <guid>https://dev.to/henrietta_hariet/introduction-to-svg-in-html5-creating-basic-shapes-4l2p</guid>
      <description>&lt;p&gt;Imagine logos that stay sharp on any screen, icons that zoom in without distortion, and animations that come alive with smooth, dynamic movement. &lt;/p&gt;

&lt;p&gt;All thanks to SVG, a language that builds graphics like tiny, flexible building blocks. No more blurry messes! &lt;/p&gt;

&lt;p&gt;With SVG, you get stunning visuals that adapt to any device, keep your website light and fast, and even open up the door to fascinating animations. &lt;/p&gt;

&lt;p&gt;It lets you add two-dimensional scalable vector graphics to your website. &lt;br&gt;
SVG has been around since 2001 and can be used in most modern browsers. It is supported by all major browsers and is easy to use. &lt;/p&gt;

&lt;p&gt;In this article, we will learn the introduction to SVG and how to create common shapes.&lt;/p&gt;

&lt;h1&gt;
  
  
  What is SVG?
&lt;/h1&gt;

&lt;p&gt;SVG stands for Scalable Vector Graphics, it is a web-based graphics language that allows developers to create and display vector-based images on the internet. Unlike raster images that are made up of pixels, SVG images are constructed using mathematical equations and are resolution-independent, making them scalable and adaptable to different screen sizes.&lt;/p&gt;

&lt;h3&gt;
  
  
  Advantages of SVG
&lt;/h3&gt;

&lt;p&gt;1.&lt;em&gt;Zoom in without Zoom Woes:&lt;/em&gt; &lt;br&gt;
Unlike pixelated images that turn blurry when magnified, SVG graphics are built on math, not pixels! This means they stay sharp and crisp no matter how much you zoom in or out, making them perfect for logos, icons, and any element you want to look flawless on any screen.&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%2Fc00qoykkpbenlu6h1hsh.jpg" 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%2Fc00qoykkpbenlu6h1hsh.jpg" alt="vector versus raster Google image"&gt;&lt;/a&gt; &lt;/p&gt;

&lt;p&gt;2.&lt;em&gt;Feature-Packed Playground:&lt;/em&gt; &lt;br&gt;
SVG isn't just for basic shapes. It's a whole playground of graphical possibilities! From smooth curves and vibrant gradients to intricate patterns and cool filters, SVG lets you express your creativity and design stunning visuals that fascinate your audience.&lt;/p&gt;

&lt;p&gt;3.&lt;em&gt;Edit Anywhere, Anytime:&lt;/em&gt; &lt;br&gt;
No need for fancy software! You can create and tweak SVG graphics like a pro using code, simple text editors, or even design tools. This flexibility makes SVG accessible to everyone, from seasoned designers to code-curious beginners.&lt;/p&gt;

&lt;h2&gt;
  
  
  How to get started
&lt;/h2&gt;

&lt;p&gt;To get started with creating SVG graphics, you need to have a basic understanding of XML (eXtensible Markup Language) as SVG is an XML-based format. &lt;/p&gt;

&lt;p&gt;SVG code consists of a series of XML tags enclosed within an &lt;code&gt;&amp;lt;svg&amp;gt;&lt;/code&gt; element which defines the dimensions and properties of the graphic.&lt;/p&gt;

&lt;h3&gt;
  
  
  SVG basic shapes and their Attributes
&lt;/h3&gt;

&lt;p&gt;1.&lt;strong&gt;Circle&lt;/strong&gt; &lt;br&gt;
The &lt;code&gt;&amp;lt;circle&amp;gt;&lt;/code&gt; element is used to draw a circle&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;&lt;p&gt;&lt;strong&gt;cx and cy:&lt;/strong&gt; &lt;br&gt;
These are the coordinates of the center of your circle.&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;&lt;code&gt;&amp;lt;cx&amp;gt;&lt;/code&gt; This controls the horizontal position of the center (left or right). &lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;&lt;code&gt;&amp;lt;cy&amp;gt;&lt;/code&gt; This controls the vertical position of the center up(top) or down(bottom). &lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;&lt;code&gt;&amp;lt;r&amp;gt;&lt;/code&gt; This is the radius of your circle determining how big or small your circle appears.&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;&lt;code&gt;&amp;lt;fill&amp;gt;&lt;/code&gt; fill lets you fill your circle with any color you desire, (you can set it to "none" for an invisible circle using fill="transparent"). &lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;&lt;code&gt;&amp;lt;Stroke&amp;gt;&lt;/code&gt; This controls the color and thickness of the circle's outline, Similar to fill, you can set its color and thickness. stroke="red" stroke-width="2" would give the circle a red outline with a thickness of 2 pixels.&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;&lt;code&gt;&amp;lt;Opacity&amp;gt;&lt;/code&gt; This determines the transparency of the circle.&lt;br&gt;
A value of 1 is fully opaque (solid), while 0 is completely invisible. &lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;&lt;code&gt;&amp;lt;visibility&amp;gt;&lt;/code&gt; This simply lets you hide or show the circle. visibility="visible" turns the circle on, while visibility="hidden" turns it off.&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;&lt;code&gt;&amp;lt;class&amp;gt;&lt;/code&gt; This helps you group and style circles easily. &lt;/p&gt;&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;&lt;em&gt;Now let's create an SVG graphic that displays a circle:&lt;/em&gt;&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;
 XML
&amp;lt;svg width="1000" height="1000"&amp;gt;

&amp;lt;circle cx="150" cy="250" r="25" fill="green" stroke="purple" stroke-width="5" opacity="5" /&amp;gt;

    &amp;lt;circle cx="200" cy="100" r="40"
stroke="green"
 stroke-width="3" fill="red" /&amp;gt;

&amp;lt;circle cx="100" cy="100" r="50" fill="yellow" stroke="red" stroke-width="1" opacity="6"/&amp;gt;
&amp;lt;/svg&amp;gt;


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

&lt;/div&gt;

&lt;p&gt;&lt;em&gt;Output&lt;/em&gt;&lt;br&gt;
&lt;a href="https://media.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fvk0khwxmuiiu87y3aeiu.jpg" 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%2Fvk0khwxmuiiu87y3aeiu.jpg" alt="Image of a circle"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;2.&lt;strong&gt;Ellipse&lt;/strong&gt;&lt;br&gt;
The &lt;code&gt;&amp;lt;ellipse&amp;gt;&lt;/code&gt; element is used to draw an ellipse.&lt;/p&gt;

&lt;p&gt;Circles and ellipses share many similarities in their SVG attributes, making them powerful tools for creating diverse shapes. Here is a breakdown&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Positioning and Visibility:&lt;/strong&gt;&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;&lt;p&gt;&lt;code&gt;&amp;lt;x&amp;gt;&lt;/code&gt; &amp;amp; &lt;code&gt;&amp;lt;y&amp;gt;&lt;/code&gt;&lt;br&gt;
Both use these attributes to define the position of their center point in pixels, allowing you to place them anywhere on the canvas.&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;&lt;code&gt;&amp;lt;visibility&amp;gt;&lt;/code&gt;&lt;br&gt;
Both utilize visibility="visible" and visibility="hidden" to control whether they appear or are hidden from view.&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;&lt;code&gt;&amp;lt;fill&amp;gt;&lt;/code&gt; &lt;br&gt;
Both use fill to define the color of their interior, offering the same flexibility with color names and hex codes.&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;&lt;code&gt;&amp;lt;stroke&amp;gt;&lt;/code&gt; &amp;amp; &lt;code&gt;&amp;lt;stroke-width&amp;gt;&lt;/code&gt;&lt;br&gt;
Both use these attributes to control the color and thickness of their outline, allowing for consistent border styling.&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;&lt;code&gt;&amp;lt;opacity&amp;gt;&lt;/code&gt;&lt;br&gt;
Both use opacity to adjust their transparency, enabling fading and layering effects.&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;&lt;code&gt;&amp;lt;class&amp;gt;&lt;/code&gt; &lt;br&gt;
Both support the class attribute for grouping and styling multiple elements together, simplifying your design workflow.&lt;/p&gt;&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;&lt;strong&gt;Additional Similarities:&lt;/strong&gt;&lt;br&gt;
 Both attributes use pixels as units for dimensions and positions.&lt;/p&gt;

&lt;h3&gt;
  
  
  Key Differences:
&lt;/h3&gt;

&lt;ul&gt;
&lt;li&gt;&lt;p&gt;&lt;em&gt;Shape definition:&lt;/em&gt;&lt;br&gt;
Circles use the r attribute for their radius, defining a perfectly round shape. Ellipses use &lt;code&gt;&amp;lt;rx&amp;gt;&lt;/code&gt; and &lt;code&gt;&amp;lt;ry&amp;gt;&lt;/code&gt; attributes for their horizontal and vertical radii, creating oval shapes with varying degrees of elongation.&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;&lt;em&gt;Focus:&lt;/em&gt;&lt;br&gt;
Circles offer simplicity and consistency in their shape, while ellipses provide more flexibility for creating diverse oval shapes.&lt;/p&gt;&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;&lt;strong&gt;Choosing between them:&lt;/strong&gt;&lt;br&gt;
If your design needs a perfectly round shape, a circle is the ideal choice.&lt;br&gt;
If you require oval shapes with varying degrees of elongation, an ellipse is the better option.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Let's create an ellipse&lt;/strong&gt;&lt;br&gt;
Example code:&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;
 XML
&amp;lt;svg width="1000" height="1000"&amp;gt;
  &amp;lt;ellipse cx="100" cy="50" rx="80" ry="30" fill="blue" /&amp;gt;

      &amp;lt;ellipse rx="50" ry="40"cx="300"
cy="50" fill="brown" stroke="green" stroke-width="5"/&amp;gt;
&amp;lt;/svg&amp;gt;


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

&lt;/div&gt;

&lt;p&gt;&lt;em&gt;Output&lt;/em&gt;&lt;br&gt;
&lt;a href="https://media.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Ffjfqoljnayu4yqc12gwc.jpg" 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%2Ffjfqoljnayu4yqc12gwc.jpg" alt="Image of ellipse"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;3.&lt;strong&gt;Rectangle &lt;code&gt;&amp;lt;rect&amp;gt;&lt;/code&gt;&lt;/strong&gt;&lt;br&gt;
The rectangle element lets you draw and style the shape of a square or rectangle&lt;br&gt;
Both can be combined with CSS for further styling and customization.&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;&lt;p&gt;&lt;code&gt;&amp;lt;x&amp;gt;&lt;/code&gt; &amp;amp; &lt;code&gt;&amp;lt;y&amp;gt;&lt;/code&gt;&lt;br&gt;
These tell your square where to stay on the screen. Just like the corners of a sticky note, x being left-right and y being up-down. Both use numbers like "50" for pixels, so x=50 y=100 puts your square 50 pixels right and 100 pixels down.&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;&lt;code&gt;&amp;lt;x&amp;gt;&lt;/code&gt; &lt;br&gt;
Where the left side of the shape starts &lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;&lt;code&gt;&amp;lt;y&amp;gt;&lt;/code&gt;&lt;br&gt;
Where the top of the box starts &lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;&lt;code&gt;&amp;lt;width&amp;gt;&lt;/code&gt; &lt;br&gt;
How wide the box stretches (like arms reaching out)&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;&lt;code&gt;&amp;lt;height&amp;gt;&lt;/code&gt; &lt;br&gt;
How tall the box stands (like a proud giraffe!)&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;&lt;code&gt;&amp;lt;fill&amp;gt;&lt;/code&gt; &lt;br&gt;
The color inside the box (like painting its walls!)&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;&lt;code&gt;&amp;lt;stroke&amp;gt;&lt;/code&gt; &lt;br&gt;
The color of the box's outline (like drawing its frame)&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;&lt;code&gt;&amp;lt;stroke-width&amp;gt;&lt;/code&gt; &lt;br&gt;
The thickness of  the box's outline (think of a thin line or a bold border)&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;&lt;code&gt;&amp;lt;visibility&amp;gt;&lt;/code&gt;&lt;br&gt;
The box can be set to be  seen or hidden &lt;/p&gt;&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;&lt;strong&gt;Special features&lt;/strong&gt;&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;&lt;p&gt;&lt;code&gt;&amp;lt;rx&amp;gt;&lt;/code&gt; &amp;amp; &lt;code&gt;&amp;lt;ry&amp;gt;&lt;/code&gt;&lt;br&gt;
These are rounded corners like knobs that control how curvy the shapes are!&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;&lt;code&gt;&amp;lt;class&amp;gt;&lt;/code&gt;&lt;br&gt;
This makes it easy to group and style similar boxes together&lt;/p&gt;&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;&lt;strong&gt;Let's create a simple SVG graphic that displays a rectangle:&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;&lt;em&gt;Example code:&lt;/em&gt;&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;
 XML
&amp;lt; svg width="1000" height="1000"&amp;gt;
  &amp;lt;rect x="250" y="20" width="80" height="60" fill="green" /&amp;gt;

    &amp;lt;rect x="150" y="200" width="200" height="100" fill="yellow" stroke="purple" stroke-width="2"/&amp;gt;

&amp;lt;rect width="100" height="100" x="70" y="10" stroke="green" stroke-width="4" rx="30"/&amp;gt; 

&amp;lt;/svg&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%2Fgv8lte3ykdtnikp86ens.jpg" 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%2Fgv8lte3ykdtnikp86ens.jpg" alt="Image of a rectangle"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;4.&lt;strong&gt;Line:&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;Lines form connections, borders, and even intricate patterns. &lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;code&gt;&amp;lt;x1&lt;/code&gt;&amp;gt; &amp;amp; &lt;code&gt;&amp;lt;y1&amp;gt;&lt;/code&gt;: These mark the starting point of your line, with x1 controlling the horizontal position (left-right) and y1 controlling the vertical position (up-down). &lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;Both use pixels as units, so x1="50" y1="100" places the starting point 50 pixels to the right and 100 pixels down from the top left of your SVG canvas.&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;&lt;p&gt;&lt;code&gt;&amp;lt;x2&amp;gt;&lt;/code&gt; &amp;amp; &lt;code&gt;&amp;lt;y2&amp;gt;&lt;/code&gt;: These define the ending point of your line, Similar to x1 &amp;amp; y1, they control the horizontal and vertical position of the ending point, allowing you to stretch your line in any direction.&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;&lt;code&gt;&amp;lt;stroke&amp;gt;&lt;/code&gt;: This is your virtual paintbrush for the line's color. Just like filling a bucket, you can choose any color name or hex code. For example, stroke="red" paints the line red, while stroke="transparent" makes it invisible.&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;&lt;code&gt;&amp;lt;stroke-width&amp;gt;&lt;/code&gt;: This is like the color of your pen for drawing the line. Similar to filling a shape, you can choose any color name or hex code. For example, stroke="blue" would draw a blue line, while stroke="transparent" would make it invisible! It also uses pixels, so stroke-width="3" makes your line 3 pixels thick.&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;&lt;code&gt;&amp;lt;stroke-linecap&amp;gt;&lt;/code&gt;: This determines the shape of the ends of your line, like the tip of your pen. The options are:&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;&lt;code&gt;&amp;lt;butt&amp;gt;&lt;/code&gt;(flat-ends): The default, where the line ends abruptly (like a blunt pen).&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;&lt;code&gt;&amp;lt;round&amp;gt;&lt;/code&gt;(curved-ends): Creates rounded caps, giving a softer look.&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;&lt;code&gt;&amp;lt;square&amp;gt;&lt;/code&gt;(boxy ends): Makes the ends square, like a chiseled pencil tip.&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;&lt;code&gt;&amp;lt;stroke-dasharray&lt;/code&gt;: This lets you add dashes and gaps along the line, like dotted lines or musical notes.&lt;br&gt;
You can specify the lengths of dashes and gaps in pixels, separated by commas. For example, stroke-dash array="5, 10" would create a line with alternating dashes of 5 pixels and gaps of 10 pixels.&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;&lt;code&gt;&amp;lt;stroke-dashoffset&amp;gt;&lt;/code&gt;: This shifts the starting point of the dash pattern, like adjusting the first note in a melody. A value of 0 starts with a dash, while higher values move the pattern to the right, revealing more of the line before the first dash.&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;&lt;code&gt;&amp;lt;opacity&amp;gt;&lt;/code&gt;: This is the fading slider for your line, letting you control its transparency. A value of 1 is fully opaque (solid), while 0 makes it completely invisible. &lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;&lt;code&gt;&amp;lt;visibility&amp;gt;&lt;/code&gt;:visibility="visible" makes it appear, while visibility="hidden" sends it to the background.&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;&lt;code&gt;&amp;lt;class&amp;gt;&lt;/code&gt;: This is your organizational tool, grouping your lines for easy styling. Assign a class like "borders" or "guidelines" to your line elements, and then style them based on class&lt;/p&gt;&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;&lt;strong&gt;Let's create line shapes&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;&lt;em&gt;Example code:&lt;/em&gt;&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;
 XML
&amp;lt;svg width="500" height="500"&amp;gt;
  &amp;lt;line x1="10" y1="10" x2="90" y2="90" stroke="violet" stroke-width="3"/&amp;gt;

&amp;lt;line x1="10" y1="250" x2="10"
y2="400" stroke=" blue" stroke-width="6"/&amp;gt;

&amp;lt;line x1="10" y1="250" x2="200"
y2="250" stroke="black" stroke-width="4"/&amp;gt;

&amp;lt;/svg&amp;gt;


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

&lt;/div&gt;

&lt;p&gt;&lt;em&gt;Output&lt;/em&gt;&lt;br&gt;
&lt;a href="https://media.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Ffukfiklg1oo7zquz6o1c.jpg" 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%2Ffukfiklg1oo7zquz6o1c.jpg" alt="Image of a line"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;5.&lt;strong&gt;Path:&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;The  element is used to draw more complex shapes using path data.&lt;/p&gt;

&lt;p&gt;Path element in SVG is incredibly powerful, allowing you to create an infinite variety of shapes and lines with just one element. However, its flexibility comes with a set of attributes that can seem overwhelming at first. Let's break down the main ones:&lt;/p&gt;

&lt;h4&gt;
  
  
  Path Data:
&lt;/h4&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;code&gt;&amp;lt;d&amp;gt;&lt;/code&gt;: This defines its shape with a series of path commands and coordinates. These commands tell the path how to move, draw lines, curves, and more. It's a bit like giving directions on a map, telling the path where to go and what shapes to make.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;&lt;code&gt;&amp;lt;M&amp;gt;&lt;/code&gt;: This command marks the starting point of the path. You can use multiple M commands to create a path with multiple segments.&lt;/p&gt;

&lt;p&gt;&lt;code&gt;&amp;lt;L&amp;gt;&lt;/code&gt;: This command draws a straight line to the specified coordinates.&lt;/p&gt;

&lt;p&gt;&lt;code&gt;&amp;lt;C&amp;gt;&lt;/code&gt;: This command creates a curve by defining two control points and the ending point. Imagine pulling a rubber band between these points, and that's the shape of the curve.&lt;/p&gt;

&lt;p&gt;&lt;code&gt;&amp;lt;Z&amp;gt;&lt;/code&gt;: This command closes the path by drawing a straight line back to the starting point of the last subpath.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Other Attributes:&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;&lt;code&gt;&amp;lt;fill&amp;gt;&lt;/code&gt;: Similar to other SVG elements, you can define the interior color of the path with fill.&lt;/p&gt;

&lt;p&gt;&lt;code&gt;&amp;lt;stroke&amp;gt;&lt;/code&gt;: This defines the color and thickness of the path's outline using stroke and stroke width.&lt;/p&gt;

&lt;p&gt;&lt;code&gt;&amp;lt;stroke-linecap&amp;gt;&lt;/code&gt; &amp;amp; &lt;code&gt;&amp;lt;stroke-linejoin&amp;gt;&lt;/code&gt;: These control the appearance of the path's ends and corners, offering options like "butt", "round", and "miter" for a variety of styles.&lt;/p&gt;

&lt;p&gt;&lt;code&gt;&amp;lt;opacity&amp;gt;&lt;/code&gt;: Adjusts the path's transparency, making it partially visible with values between 0 and 1.&lt;/p&gt;

&lt;p&gt;&lt;code&gt;&amp;lt;visibility&amp;gt;&lt;/code&gt;: This simply shows (visible) or hides (hidden) the path.&lt;/p&gt;

&lt;p&gt;&lt;code&gt;&amp;lt;class&amp;gt;&lt;/code&gt;: Just like other elements, you can assign a class to a group and style multiple paths together for easier management and consistency.&lt;/p&gt;

&lt;p&gt;&lt;em&gt;Example code (drawing a path):&lt;/em&gt;&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;
 XML
&amp;lt;svg width="1000" height="1000"&amp;gt;
  &amp;lt;path d="M10 80 L90 80 L50 10 Z" fill="green" /&amp;gt;

&amp;lt;path d="M 100 50 L 50 300 L 200 300 z" fill="red"/&amp;gt;

    &amp;lt;path d="M 200 50 H 400 z" fill="red" stroke="ash" stroke-width="4"/&amp;gt;

&amp;lt;path d="M 200 50 V 400 z" fill="none" stroke="orange" stroke-width="4"/&amp;gt;

&amp;lt;path d="M 200 50 C 180 200, 200 200,400 104 z" fill="none" stroke="black" stroke-width="5" /&amp;gt;

&amp;lt;path d="M 200 50 S 180 200,400 104 z" fill="none" stroke="pink" stroke-width="3"/&amp;gt;

&amp;lt;path d="M 200 50 Q 180 200,400 104 z" fill="none" stroke="yellow" stroke-width="5"/&amp;gt;

&amp;lt;path d="M 200 50 Q 180 200,400 104 z" fill="purple" stroke="gold" stroke-width="5"/&amp;gt;

&amp;lt;path d="M 200 50 Q 180 200,400 104 T 400, 200  z" fill="pink"
stroke="green" stroke-width="5"/&amp;gt;
&amp;lt;/svg&amp;gt;


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

&lt;/div&gt;

&lt;p&gt;&lt;em&gt;Output&lt;/em&gt;&lt;br&gt;
&lt;a href="https://media.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fo12e9aw1fi2a3cahwe4b.jpg" 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%2Fo12e9aw1fi2a3cahwe4b.jpg" alt="Image of a path"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;6.&lt;strong&gt;Polygons:&lt;/strong&gt;&lt;br&gt;
The  element is used to draw closed polygons (shapes with straight sides), letting you create an array of shapes from triangles to stars and beyond. &lt;/p&gt;

&lt;p&gt;However, understanding their attributes is crafting precise and visually stunning creations.&lt;/p&gt;

&lt;h2&gt;
  
  
  &lt;strong&gt;Attributes&lt;/strong&gt;
&lt;/h2&gt;

&lt;p&gt;&lt;code&gt;&amp;lt;points&amp;gt;&lt;/code&gt;: This is the blueprint of your polygon, a list of coordinates (x,y pairs) defining its vertices (corners). &lt;/p&gt;

&lt;p&gt;It's like connecting dots on a grid – each coordinate tells the polygon where to turn and how far to travel. The more points you list, the more complex your shape becomes!&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;&lt;p&gt;&lt;code&gt;&amp;lt;fill&amp;gt;&lt;/code&gt;: This is your virtual paintbrush, filling the polygon's interior with any color you desire. You can use names like fill="blue" or hex codes like fill="#ff0000" for fiery red. You can even make it invisible with fill="transparent"!&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;&lt;code&gt;&amp;lt;stroke&amp;gt;&lt;/code&gt;: Imagine this as the border of your polygon, like the rim of a plate. stroke lets you control its color and thickness. Just like fill, use stroke="green" stroke-width="2" to give your polygon a green outline 2 pixels thick.&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;&lt;code&gt;&amp;lt;stroke-linecap&amp;gt;&lt;/code&gt; &amp;amp; &lt;code&gt;&amp;lt;stroke-linejoin&amp;gt;&lt;/code&gt;: These refine your polygon's edges. stroke-line cap determines how the ends of your polygon lines look (butt, round, or square), while stroke-line join controls how corners between lines are formed (miter, round, or bevel). They add finesse to your shapes!&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;&lt;code&gt;&amp;lt;opacity&amp;gt;&lt;/code&gt;: This is the fading slider for your polygon, letting you control its transparency. A value of 1 is fully opaque (solid), while 0 makes it completely invisible. &lt;/p&gt;&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;&lt;code&gt;&amp;lt;visibility&amp;gt;&lt;/code&gt;: This is the on/off switch for your polygon. visibility="visible" makes it appear, while visibility="hidden" sends it to the background, like a magician's vanishing act.&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;code&gt;&amp;lt;class&amp;gt;&lt;/code&gt;: This is your organizational tool, grouping your polygons for easy styling. Assign a class like "shapes" or "icons" to your polygon elements, and then style them based on that class. &lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;&lt;em&gt;Example code (drawing a triangle and a star):&lt;/em&gt;&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;
 XML
&amp;lt;svg width="1000" height="1000"&amp;gt;

  &amp;lt;polygon points="10 80, 90 80, 50 10" fill=="green" /&amp;gt;

&amp;lt;polygon points="500,200 400,400 650,280 350,280 600,400" fill=" gold" stroke="pink" stroke-width="3" fill-rule="even even"/&amp;gt;
&amp;lt;/svg&amp;gt;


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

&lt;/div&gt;

&lt;p&gt;&lt;em&gt;Output&lt;/em&gt;&lt;br&gt;
&lt;a href="https://media.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fuya98ypsqbo5efksp29w.jpg" 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%2Fuya98ypsqbo5efksp29w.jpg" alt="Image of a polygon"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;7.&lt;strong&gt;Polyline:&lt;/strong&gt;&lt;br&gt;
The  element is used to draw open polygons (shapes with straight sides).&lt;br&gt;
They are like versatile artists – they can draw simple lines, complex shapes, and everything in between. &lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Attributes&lt;/strong&gt;&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;&lt;p&gt;&lt;code&gt;&amp;lt;points&amp;gt;&lt;/code&gt; (required)&lt;br&gt;
This is the blueprint of your polyline, a list of coordinates (x,y pairs) defining the points it visits on its journey. Imagine it like connecting dots on a grid – each point tells the polyline where to turn and how far to travel. The more points you list, the more complex your line becomes!&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;&lt;code&gt;&amp;lt;fill&amp;gt;&lt;/code&gt; (optional)&lt;br&gt;
While not commonly used with polylines (they're primarily for outlines), you can use fill to color the area enclosed by the polyline if it forms a closed shape. Think of it like filling in a coloring book page but with lines instead of outlines.&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;&lt;code&gt;&amp;lt;stroke&amp;gt;&lt;/code&gt;&lt;br&gt;
(required by default): This is the color and thickness of your polyline's outline, like the pen you use to draw it. stroke lets you choose any color you want, and you can control the thickness with stroke width. For example, stroke="red" stroke-width="3" would give you a thick red line.&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;&lt;code&gt;&amp;lt;stroke-linecap&amp;gt;&lt;/code&gt; (optional): This determines how the ends of your polyline look. Choose from "butt" (square ends), "round" (curved ends), or "square" (extended square ends) to add a stylistic touch to your line's beginning and end.&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;&lt;code&gt;&amp;lt;stroke-linejoin&amp;gt;&lt;/code&gt; (optional): This controls how corners between the line segments of your polyline are formed. Choose from "miter" (sharp corners), "round" (smooth corners), or "bevel" (angled corners) for a customized look at the joints.&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;&lt;code&gt;&amp;lt;opacity&amp;gt;&lt;/code&gt; (optional): This is the fading slider for your polyline, letting you control its transparency. A value of 1 is fully opaque (solid), while 0 makes it completely invisible. Play with values between 0 and 1 to create subtle or dramatic fading effects, like a line slowly emerging from the mist.&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;&lt;code&gt;&amp;lt;visibility&amp;gt;&lt;/code&gt; (optional): This is the on/off switch for your polyline. &lt;code&gt;&amp;lt;visibility="visible&amp;gt;&lt;/code&gt; makes it appear, while &lt;code&gt;&amp;lt;visibility=" hidden&amp;gt;&lt;/code&gt; sends it to the background, like a magician's disappearing act.&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;&lt;code&gt;&amp;lt;class&amp;gt;&lt;/code&gt; (optional): This helps you group and style polylines easily. Imagine labeling all your red lines with "error" or all your green lines with "success". You can assign a class and then style them based on that class, saving you time and effort.&lt;/p&gt;&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;&lt;strong&gt;Example code (drawing a zigzag line):&lt;/strong&gt;&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;
 XML
&amp;lt;svg width="1000" height="1000"&amp;gt;

  &amp;lt;polyline points="10 20, 40 60, 70 20, 100 70" fill="none" stroke="green" stroke-width="6" /&amp;gt;

&amp;lt;polyline points="20,700 400,750 150,800,250 1000" stroke=" purple" stroke-width="4" fill="none"/&amp;gt;

&amp;lt;/svg&amp;gt;


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

&lt;/div&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%2Fq5lxzbbia5mkjs8d1vt2.jpg" 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%2Fq5lxzbbia5mkjs8d1vt2.jpg" alt="Image of a polyline zigzag"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;7.&lt;strong&gt;Text&lt;/strong&gt;&lt;br&gt;
SVG text elements offer incredible flexibility for adding words and phrases to your visuals. &lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;&lt;p&gt;&lt;code&gt;&amp;lt;x&amp;gt;&lt;/code&gt; &amp;amp; &lt;code&gt;&amp;lt;y&amp;gt;&lt;/code&gt;&lt;br&gt;
These define the position of the text's baseline (the line where the bottom of letters sit). Imagine them like anchor points, with x controlling the horizontal position (left-right) and y controlling the vertical position (up-down). Both use pixels as units, so x="50" y="100" places the baseline 50 pixels to the right and 100 pixels down from the top left of your canvas.&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;&lt;code&gt;&amp;lt;dx&amp;gt;&lt;/code&gt;&amp;amp; &lt;code&gt;&amp;lt;dy&amp;gt;&lt;/code&gt;&lt;br&gt;
Think of these as fine-tuning knobs for the text's position. They allow you to nudge the baseline slightly after setting x and y. dx shifts left-right, while dy shifts up-down. Both use pixels as units, so dx="5" dy="-2" would move the text 5 pixels to the right and 2 pixels down from the initial position.&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;&lt;code&gt;&amp;lt;text-anchor&amp;gt;&lt;/code&gt;&lt;br&gt;
This determines the alignment point for the text relative to the x and y coordinates. Think of it like a flagpole for your text. The options include:&lt;/p&gt;&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;&lt;code&gt;&amp;lt;start&amp;gt;&lt;/code&gt;&lt;br&gt;
 Align the text's left edge with the x coordinate.&lt;br&gt;
middle: Centers the text horizontally around the x coordinate.&lt;/p&gt;

&lt;p&gt;&lt;code&gt;&amp;lt;end&amp;gt;&lt;/code&gt;&lt;br&gt;
 Align the text's right edge with the x coordinate.&lt;/p&gt;

&lt;p&gt;Other options like inherit and specific x/y offsets are also available.&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;&lt;p&gt;&lt;code&gt;&amp;lt;font-family&amp;gt;&lt;/code&gt;&lt;br&gt;
This specifies the typeface of your text. Choose from installed fonts on your system or use web fonts for wider options. Use names like "Arial" or "Roboto" or specify font families with quotes (e.g., "Open Sans Condensed").&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;&lt;code&gt;&amp;lt;font-size&amp;gt;&lt;/code&gt; &lt;br&gt;
This controls the text height in pixels. A larger value makes the text taller, while a smaller value makes it shorter. Remember, readability is key!&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;&lt;code&gt;&amp;lt;font-weight&amp;gt;&lt;/code&gt;&lt;br&gt;
This defines the boldness of the text. Choose from options like "normal," "bold," "lighter," or even specify a numeric weight (e.g., "font-weight: 500").&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;&lt;code&gt;&amp;lt;fill&amp;gt;&lt;/code&gt; This is your virtual paintbrush for the text, just like for shapes. Use color names or hex codes to make your words stand out. You can even use fill="transparent" to create invisible outlines!&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;&lt;code&gt;&amp;lt;stroke&amp;gt;&lt;/code&gt; &amp;amp; &lt;code&gt;&amp;lt;stroke-width&amp;gt;&lt;/code&gt; Similar to fill, these define the color and thickness of the text's outline. Use them to create borders around your words or add decorative accents.&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;&lt;code&gt;&amp;lt;opacity&amp;gt;&lt;/code&gt;&lt;br&gt;
This controls the transparency of the text, allowing you to fade it in or out. A value of 1 is fully opaque (solid), while 0 makes it completely invisible.&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;&lt;code&gt;&amp;lt;visibility&amp;gt;&lt;/code&gt;&lt;br&gt;
This is the on/off switch for your text. visibility="visible" makes it appear, while visibility="hidden" sends it off-screen like a disappearing act.&lt;/p&gt;&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;Code&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;
 XML
&amp;lt;svg&amp;gt;
&amp;lt;text x="50" y="50" fill="brown"&amp;gt; SVG &amp;lt;tspan x="50" y="70"&amp;gt;   shapes &amp;lt;/tspan&amp;gt; &amp;lt;tspan  x="50" y="90"&amp;gt; basic &amp;lt;/span /&amp;gt;
&amp;lt;/svg&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/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fnn9aiw94umkcg4yv78s1.jpg" 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%2Fnn9aiw94umkcg4yv78s1.jpg" alt="Image of text"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;Note: You can decide to style using CSS.&lt;/p&gt;

&lt;h4&gt;
  
  
  Additional Resources:
&lt;/h4&gt;

&lt;p&gt;SVG Text Attributes: &lt;a href="https://developer.mozilla.org/en-US/docs/Web/SVG/Element/text" rel="noopener noreferrer"&gt;mozilla&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;&lt;a href="https://developer.mozilla.org/en-US/docs/Web/SVG/Element/text" rel="noopener noreferrer"&gt;https://developer.mozilla.org/en-US/docs/Web/SVG/Element/text&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;CSS Text Properties: &lt;a href="https://developer.mozilla.org/en-US/docs/Web/CSS/CSS_text" rel="noopener noreferrer"&gt;https://developer.mozilla.org/en-US/docs/Web/CSS/CSS_text&lt;/a&gt;&lt;/p&gt;

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

&lt;p&gt;SVG is a powerful graphics format that enables developers to create visually stunning graphics that can be scaled and adapted to different screen sizes. By using SVG code snippets, developers can have precise control over the appearance and behavior of their graphics.&lt;br&gt;
By combining these elements and utilizing various attributes and styles, you can create complex and customized graphics.&lt;/p&gt;

</description>
      <category>webdev</category>
      <category>programming</category>
      <category>beginners</category>
      <category>tutorial</category>
    </item>
    <item>
      <title>Responsive Web Design: Enhancing User Experience Across All Devices</title>
      <dc:creator>Henrietta Okechukwu O (Hariet)</dc:creator>
      <pubDate>Tue, 19 Dec 2023 18:44:54 +0000</pubDate>
      <link>https://dev.to/henrietta_hariet/responsive-web-design-enhancing-user-experience-across-all-devices-4ebl</link>
      <guid>https://dev.to/henrietta_hariet/responsive-web-design-enhancing-user-experience-across-all-devices-4ebl</guid>
      <description>&lt;p&gt;Imagine trying to access a travel blog on your smartphone, only to be welcomed by a messy and unresponsive website. The text is overflowing, and the buttons are too small to tap. Frustrated, you quickly leave the site. This is the nightmare of non-responsive design.&lt;/p&gt;

&lt;p&gt;Instead of constantly tweaking code to make it responsive, imagine a way to effortlessly adjust websites to different devices. Responsive design is the solution. It is crucial to prioritize responsive design from the start, rather than considering it as an afterthought.&lt;/p&gt;

&lt;p&gt;In this article, we will explore the steps of implementing responsive design, understanding different approaches, and their significance in the digital world.&lt;/p&gt;

&lt;h2&gt;
  
  
  What is Responsive Web Design?
&lt;/h2&gt;

&lt;p&gt;Responsive web design ensures that websites can adapt and appear correctly on various devices and screen sizes. This allows users to enjoy optimal browsing experiences on desktops, laptops, tablets, and mobile phones.&lt;/p&gt;

&lt;h2&gt;
  
  
  Steps in Implementing Responsive Web Design
&lt;/h2&gt;

&lt;ol&gt;
&lt;li&gt;&lt;p&gt;Define Your Goals:&lt;br&gt;
Before embarking on responsive web design, determine your target audience and website goals. Are you a travel blogger aiming to captivate readers? Or an e-commerce platform targeting tech enthusiasts? By understanding your audience and objectives, you can make informed design decisions that attract the right people.&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;Sketch the Layout:&lt;br&gt;
Imagine your website as a flexible building and plan its structure. Outline key sections and pages while visualizing how the layout will appear on different devices. Prioritize a mobile-first approach, focusing on essential information for smaller screens. The resulting wireframes or sketches will act as blueprints for development.&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;Embrace Frameworks:&lt;br&gt;
Take advantage of responsive frameworks such as Bootstrap and Foundation. These frameworks offer pre-built CSS and JavaScript components that save you time and effort. Customize them to suit your website's needs while ensuring consistency across devices.&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;Prioritize Mobile First:&lt;br&gt;
Begin your design process with mobile devices in mind. Instead of scaling down, focus on creating a user-friendly experience for smaller screens. This "mobile-first" approach ensures your website performs well on the go, where most browsing occurs.&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;Incorporate Media Queries:&lt;br&gt;
Use media queries to communicate with your website effectively. Define different styles for different screen sizes to ensure readability, proper image display, and clickable buttons on any device. Think of media queries as instructions that allow your website to adapt and shine.&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;Optimize Images:&lt;br&gt;
Ensure images are optimized for different resolutions, maintaining crispness and fast loading times on any device. Optimize images to reduce their size while preserving quality. Treat image optimization as a fitness regimen, making them lean and efficient for optimal performance.&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;Test, Refine, Repeat:&lt;br&gt;
Responsive design is an ongoing journey. Regularly test your website on various devices and browsers to identify layout glitches and responsiveness issues. Make necessary fixes using CSS and JavaScript adjustments, witnessing the evolution of your website into a polished gem.&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;Continuous Monitoring and Updates:&lt;br&gt;
To guarantee responsive design, consistently monitor and update your website. Stay informed about the latest web design trends and advancements, ensuring your design remains compatible with future devices and technologies. Regularly assess website performance and gather user feedback to make necessary adjustments. Remember, responsive web design requires ongoing attention and evolution.&lt;/p&gt;&lt;/li&gt;
&lt;/ol&gt;

&lt;h2&gt;
  
  
  Benefits of Responsive Web Design
&lt;/h2&gt;

&lt;p&gt;&lt;strong&gt;1. Enhanced User Experience:&lt;/strong&gt;&lt;br&gt;
A seamless browsing experience across devices keeps users engaged and encourages return visits.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;2. Wider Reach:&lt;/strong&gt;&lt;br&gt;
Catering to mobile users, the dominant force in the digital world expands your audience significantly.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;3. Improved SEO:&lt;/strong&gt;&lt;br&gt;
Responsive websites receive higher rankings from search engines, increasing online visibility.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;4. Cost-Effectiveness:&lt;/strong&gt;&lt;br&gt;
A single responsive design saves time and money compared to building separate mobile versions.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;5. Easy Maintenance:&lt;/strong&gt;&lt;br&gt;
Make updates once, and they automatically appear on all screens. &lt;/p&gt;

&lt;h2&gt;
  
  
  Successful Examples of Responsive Design
&lt;/h2&gt;

&lt;ul&gt;
&lt;li&gt;&lt;p&gt;The New York Times: Their responsive design ensures articles and news are displayed perfectly on various devices, with layouts and fonts adjusting automatically for optimal reading experiences.&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;Airbnb: The Airbnb website adapts its interface based on screen size, making navigation effortless and ensuring users can access the site seamlessly on any device.&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;Amazon: As one of the largest online retailers, Amazon utilizes responsive design to provide a consistent shopping experience across devices. Users can conveniently browse and purchase products without any issues on computers, tablets, or smartphones.&lt;/p&gt;&lt;/li&gt;
&lt;/ul&gt;

&lt;h2&gt;
  
  
  Conclusion
&lt;/h2&gt;

&lt;p&gt;By following these responsive web design steps, you can create a website that adapts well to different screen sizes and devices. Prioritize user experience, plan layouts, utilize frameworks, optimize media, and regularly test and refine your design. This will ensure an optimal browsing experience for your users.&lt;/p&gt;

&lt;p&gt;Enforcing responsive web design techniques allows you to create a website that easily adjusts to various devices, providing a consistent and enjoyable user experience. Focus on usability and performance throughout the design and development process to connect with your audience effectively.&lt;/p&gt;

</description>
      <category>webdev</category>
      <category>beginners</category>
      <category>programming</category>
      <category>productivity</category>
    </item>
    <item>
      <title>Understanding Semantics html</title>
      <dc:creator>Henrietta Okechukwu O (Hariet)</dc:creator>
      <pubDate>Mon, 27 Nov 2023 23:04:47 +0000</pubDate>
      <link>https://dev.to/henrietta_hariet/understanding-semantics-html-2b3l</link>
      <guid>https://dev.to/henrietta_hariet/understanding-semantics-html-2b3l</guid>
      <description>&lt;h2&gt;
  
  
  Power of Semantics html
&lt;/h2&gt;

&lt;p&gt;When it comes to making information easy to understand for everyone, it's important to use semantic HTML. Semantic HTML uses tags that accurately represent the meaning of content, making it easier for screen readers and search engines to understand. This approach helps structure web content effectively.&lt;/p&gt;

&lt;p&gt;While divs with ids are still used for different purposes, relying solely on them for styling can result in unstructured and difficult-to-read code.&lt;/p&gt;

&lt;p&gt;Semantic HTML provides a more modern approach by using elements that accurately represent the meaning of content, making it easier for everyone to understand.&lt;/p&gt;

&lt;h2&gt;
  
  
  What is Semantic HTML
&lt;/h2&gt;

&lt;p&gt;When we talk about semantics, we're referring to the meaning of a word or phrase. In the context of HTML, the term 'semantic' refers to a coding technique that uses elements to clearly define the structure and purpose of a web page. This helps to improve both accessibility and SEO by making it easier for screen readers and search engines to understand and index the content.&lt;/p&gt;

&lt;h3&gt;
  
  
  Examples of some Semantics HTML element
&lt;/h3&gt;

&lt;div class="table-wrapper-paragraph"&gt;&lt;table&gt;
&lt;thead&gt;
&lt;tr&gt;
&lt;th&gt;Element Name&lt;/th&gt;
&lt;th&gt;Purpose&lt;/th&gt;
&lt;th&gt;Positioning&lt;/th&gt;
&lt;th&gt;Content&lt;/th&gt;
&lt;/tr&gt;
&lt;/thead&gt;
&lt;tbody&gt;
&lt;tr&gt;
&lt;td&gt;&lt;code&gt;&amp;lt;header&amp;gt;&lt;/code&gt;&lt;/td&gt;
&lt;td&gt;describe the header of webpage or section&lt;/td&gt;
&lt;td&gt;top of the page but can be elsewhere&lt;/td&gt;
&lt;td&gt;logo, search form, nav links etc&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;&lt;code&gt;&amp;lt;nav&amp;gt;&lt;/code&gt;&lt;/td&gt;
&lt;td&gt;Define navigation menu&lt;/td&gt;
&lt;td&gt;Header of page&lt;/td&gt;
&lt;td&gt;List of links for page navigation&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;&lt;code&gt;&amp;lt;main&amp;gt;&lt;/code&gt;&lt;/td&gt;
&lt;td&gt;Define main content of webpage&lt;/td&gt;
&lt;td&gt;Body of Page&lt;/td&gt;
&lt;td&gt;Text, images, tables, videos, forms&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;&lt;code&gt;&amp;lt;section&amp;gt;&lt;/code&gt;&lt;/td&gt;
&lt;td&gt;Define distinct sections of content&lt;/td&gt;
&lt;td&gt;body of page&lt;/td&gt;
&lt;td&gt;Text, images, videos, or other elements that form a coherent section&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;&lt;code&gt;&amp;lt;aside&amp;gt;&lt;/code&gt;&lt;/td&gt;
&lt;td&gt;Define supplementary information that is related to the main content but not part of it&lt;/td&gt;
&lt;td&gt;Great! Just to recap, the  It can be placed on the left, right, top, or bottom of the page or within the margin but should not replace navigation links&lt;/td&gt;
&lt;td&gt;Text, images, videos, or other elements that form a related but separate piece of information&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;&lt;code&gt;&amp;lt;article&amp;gt;&lt;/code&gt;&lt;/td&gt;
&lt;td&gt;Define independent piece of content that could stand on its own&lt;/td&gt;
&lt;td&gt;body of page&lt;/td&gt;
&lt;td&gt;Text, images, videos, or other elements that comprise a self-contained article&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;&lt;code&gt;&amp;lt;details&amp;gt;&lt;/code&gt;&lt;/td&gt;
&lt;td&gt;Define additional information to a section of content&lt;/td&gt;
&lt;td&gt;Within a section or article&lt;/td&gt;
&lt;td&gt;Text, images, or other content that is shown when a user clicks to "open" the details&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;&lt;code&gt;&amp;lt;Mark&amp;gt;&lt;/code&gt;&lt;/td&gt;
&lt;td&gt;Define emphasized text within a section&lt;/td&gt;
&lt;td&gt;within a section or article&lt;/td&gt;
&lt;td&gt;Text that is emphasized with styling, such as bold or italics, to draw the user's attention&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;&lt;code&gt;&amp;lt;figure&amp;gt;&lt;/code&gt;&lt;/td&gt;
&lt;td&gt;Define an image, video, or other media content in a section or article&lt;/td&gt;
&lt;td&gt;within a section or article&lt;/td&gt;
&lt;td&gt;Image, video, or other media content with an optional caption&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;&lt;code&gt;&amp;lt;figcaption&amp;gt;&lt;/code&gt;&lt;/td&gt;
&lt;td&gt;Define a caption for a figure&lt;/td&gt;
&lt;td&gt;Within a  element, as a child element&lt;/td&gt;
&lt;td&gt;Text describing the image, video, or other media content in a figure&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;&lt;code&gt;&amp;lt;summary&amp;gt;&lt;/code&gt;&lt;/td&gt;
&lt;td&gt;Define a summary of a details element&lt;/td&gt;
&lt;td&gt;Within a  element, as a child elements&lt;/td&gt;
&lt;td&gt;Text summarizing the contents of a details element when it is collapsed&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;&lt;code&gt;&amp;lt;time&amp;gt;&lt;/code&gt;&lt;/td&gt;
&lt;td&gt;Define a date and/or time in a machine-readable format&lt;/td&gt;
&lt;td&gt;Anywhere within the document&lt;/td&gt;
&lt;td&gt;A valid date and/or time, in a machine-readable format&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;&lt;code&gt;&amp;lt;footer&amp;gt;&lt;/code&gt;&lt;/td&gt;
&lt;td&gt;Define website information and resources&lt;/td&gt;
&lt;td&gt;Bottom of page, but can be elsewhere&lt;/td&gt;
&lt;td&gt;Company name, copyright information, contact details etc&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;&lt;/div&gt;

&lt;h3&gt;
  
  
  Example of html Semantic syntax
&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%2Freyx3kkmyioia3wnbpvi.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%2Freyx3kkmyioia3wnbpvi.png" alt="Example of html semantic syntax" width="800" height="1200"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;Nb: This is just an example, you can decide to structure it anyway you prefer.&lt;/p&gt;

&lt;h3&gt;
  
  
  Codes illustrating html semantics.
&lt;/h3&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;code&gt;&amp;lt;header&amp;gt;&lt;/code&gt; &lt;code&gt;&amp;lt;nav&amp;gt;&lt;/code&gt;
&lt;/li&gt;
&lt;/ul&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight html"&gt;&lt;code&gt;&lt;span class="nt"&gt;&amp;lt;header&amp;gt;&lt;/span&gt; 
 &lt;span class="nt"&gt;&amp;lt;nav&amp;gt;&lt;/span&gt;    
 &lt;span class="nt"&gt;&amp;lt;ul&amp;gt;&lt;/span&gt;    
  &lt;span class="nt"&gt;&amp;lt;li&amp;gt;&amp;lt;a&lt;/span&gt; &lt;span class="na"&gt;href=&lt;/span&gt;&lt;span class="s"&gt;"#"&lt;/span&gt;&lt;span class="nt"&gt;&amp;gt;&lt;/span&gt;Home&lt;span class="nt"&gt;&amp;lt;/a&amp;gt;&amp;lt;/li&amp;gt;&lt;/span&gt;    
  &lt;span class="nt"&gt;&amp;lt;li&amp;gt;&amp;lt;a&lt;/span&gt; &lt;span class="na"&gt;href=&lt;/span&gt;&lt;span class="s"&gt;"#"&lt;/span&gt;&lt;span class="nt"&gt;&amp;gt;&lt;/span&gt;About&lt;span class="nt"&gt;&amp;lt;/a&amp;gt;&amp;lt;/li&amp;gt;&lt;/span&gt;    
  &lt;span class="nt"&gt;&amp;lt;li&amp;gt;&amp;lt;a&lt;/span&gt; &lt;span class="na"&gt;href=&lt;/span&gt;&lt;span class="s"&gt;"#"&lt;/span&gt;&lt;span class="nt"&gt;&amp;gt;&lt;/span&gt;Services&lt;span class="nt"&gt;&amp;lt;/a&amp;gt;&lt;/span&gt;.  
&lt;span class="nt"&gt;&amp;lt;/li&amp;gt;&lt;/span&gt;     
 &lt;span class="nt"&gt;&amp;lt;li&amp;gt;&amp;lt;a&lt;/span&gt; &lt;span class="na"&gt;href=&lt;/span&gt;&lt;span class="s"&gt;"#"&lt;/span&gt;&lt;span class="nt"&gt;&amp;gt;&lt;/span&gt;Contact&lt;span class="nt"&gt;&amp;lt;/a&amp;gt;&amp;lt;/li&amp;gt;&lt;/span&gt;
&lt;span class="nt"&gt;&amp;lt;/ul&amp;gt;&lt;/span&gt;
&lt;span class="nt"&gt;&amp;lt;/nav&amp;gt;&lt;/span&gt;
&lt;span class="nt"&gt;&amp;lt;/header&amp;gt;&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;In the example above, the &lt;code&gt;&amp;lt;header&amp;gt;&lt;/code&gt; element is used to define the header section of a webpage, while the &lt;code&gt;&amp;lt;nav&amp;gt;&lt;/code&gt; element represents the navigation menu.&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;code&gt;&amp;lt;main&amp;gt;&lt;/code&gt; &lt;code&gt;&amp;lt;article&amp;gt;&lt;/code&gt; &lt;code&gt;&amp;lt;section&amp;gt;&lt;/code&gt; &lt;code&gt;&amp;lt;aside&amp;gt;&lt;/code&gt;
&lt;/li&gt;
&lt;/ul&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight html"&gt;&lt;code&gt;&lt;span class="nt"&gt;&amp;lt;main&amp;gt;&lt;/span&gt;
    &lt;span class="nt"&gt;&amp;lt;section&amp;gt;&lt;/span&gt;
      &lt;span class="nt"&gt;&amp;lt;h2&amp;gt;&lt;/span&gt;About Us&lt;span class="nt"&gt;&amp;lt;/h2&amp;gt;&lt;/span&gt;
      &lt;span class="nt"&gt;&amp;lt;article&amp;gt;&lt;/span&gt;
        &lt;span class="nt"&gt;&amp;lt;h3&amp;gt;&lt;/span&gt;Our Story&lt;span class="nt"&gt;&amp;lt;/h3&amp;gt;&lt;/span&gt;
        &lt;span class="nt"&gt;&amp;lt;p&amp;gt;&lt;/span&gt;Lorem ipsum dolor sit amet, consectetur adipiscing elit. Curabitur posuere neque in tortor varius, eget pellentesque risus pretium.&lt;span class="nt"&gt;&amp;lt;/p&amp;gt;&lt;/span&gt;
      &lt;span class="nt"&gt;&amp;lt;/article&amp;gt;&lt;/span&gt;
      &lt;span class="nt"&gt;&amp;lt;article&amp;gt;&lt;/span&gt;
        &lt;span class="nt"&gt;&amp;lt;h3&amp;gt;&lt;/span&gt;Our Team&lt;span class="nt"&gt;&amp;lt;/h3&amp;gt;&lt;/span&gt;
        &lt;span class="nt"&gt;&amp;lt;p&amp;gt;&lt;/span&gt;Lorem ipsum dolor sit amet, consectetur adipiscing elit. Curabitur posuere neque in tortor varius, eget pellentesque risus pretium.&lt;span class="nt"&gt;&amp;lt;/p&amp;gt;&lt;/span&gt;
      &lt;span class="nt"&gt;&amp;lt;/article&amp;gt;&lt;/span&gt;
    &lt;span class="nt"&gt;&amp;lt;/section&amp;gt;&lt;/span&gt;

    &lt;span class="nt"&gt;&amp;lt;aside&amp;gt;&lt;/span&gt;
      &lt;span class="nt"&gt;&amp;lt;h3&amp;gt;&lt;/span&gt;Related Links&lt;span class="nt"&gt;&amp;lt;/h3&amp;gt;&lt;/span&gt;
      &lt;span class="nt"&gt;&amp;lt;ul&amp;gt;&lt;/span&gt;
        &lt;span class="nt"&gt;&amp;lt;li&amp;gt;&amp;lt;a&lt;/span&gt; &lt;span class="na"&gt;href=&lt;/span&gt;&lt;span class="s"&gt;"#"&lt;/span&gt;&lt;span class="nt"&gt;&amp;gt;&lt;/span&gt;Partners&lt;span class="nt"&gt;&amp;lt;/a&amp;gt;&amp;lt;/li&amp;gt;&lt;/span&gt;
        &lt;span class="nt"&gt;&amp;lt;li&amp;gt;&amp;lt;a&lt;/span&gt; &lt;span class="na"&gt;href=&lt;/span&gt;&lt;span class="s"&gt;"#"&lt;/span&gt;&lt;span class="nt"&gt;&amp;gt;&lt;/span&gt;Events&lt;span class="nt"&gt;&amp;lt;/a&amp;gt;&amp;lt;/li&amp;gt;&lt;/span&gt;
      &lt;span class="nt"&gt;&amp;lt;/ul&amp;gt;&lt;/span&gt;
    &lt;span class="nt"&gt;&amp;lt;/aside&amp;gt;&lt;/span&gt;
  &lt;span class="nt"&gt;&amp;lt;/main&amp;gt;&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;The &lt;code&gt;&amp;lt;main&amp;gt;&lt;/code&gt; tag contains the main content of the webpage, including &lt;code&gt;&amp;lt;section&amp;gt;&lt;/code&gt; elements that represent different sections such as "About Us". &lt;br&gt;
Each section contain multiple &lt;code&gt;&amp;lt;article&amp;gt;&lt;/code&gt; elements for specific content with respective headings &lt;code&gt;&amp;lt;h2&amp;gt;&lt;/code&gt; and &lt;code&gt;&amp;lt;h3&amp;gt;&lt;/code&gt; and paragraphs &lt;code&gt;&amp;lt;p&amp;gt;&lt;/code&gt;.&lt;/p&gt;

&lt;p&gt;The &lt;code&gt;&amp;lt;aside&amp;gt;&lt;/code&gt; element represents a section that contains content tangentially related to the main content. In this example, it contains related links.&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;code&gt;&amp;lt;footer&amp;gt;&lt;/code&gt;
&lt;/li&gt;
&lt;/ul&gt;
&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight html"&gt;&lt;code&gt;&lt;span class="nt"&gt;&amp;lt;footer&amp;gt;&lt;/span&gt;
    &lt;span class="nt"&gt;&amp;lt;p&amp;gt;&lt;/span&gt;&lt;span class="ni"&gt;&amp;amp;copy;&lt;/span&gt; 2022 Company Name. All rights reserved.&lt;span class="nt"&gt;&amp;lt;/p&amp;gt;&lt;/span&gt;
  &lt;span class="nt"&gt;&amp;lt;/footer&amp;gt;&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;


&lt;p&gt;This code defines a footer section with two paragraphs, one with copyright information and the other with a credit to Codeme Inc. &lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;code&gt;&amp;lt;details&amp;gt;&lt;/code&gt;
&lt;/li&gt;
&lt;/ul&gt;
&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight html"&gt;&lt;code&gt;&lt;span class="nt"&gt;&amp;lt;details&amp;gt;&lt;/span&gt;
    &lt;span class="nt"&gt;&amp;lt;summary&amp;gt;&lt;/span&gt;Additional Information&lt;span class="nt"&gt;&amp;lt;/summary&amp;gt;&lt;/span&gt;
    &lt;span class="nt"&gt;&amp;lt;p&amp;gt;&lt;/span&gt;Lorem ipsum dolor sit amet, consectetur adipiscing elit. Curabitur posuere neque in tortor varius, eget pellentesque risus pretium.&lt;span class="nt"&gt;&amp;lt;/p&amp;gt;&lt;/span&gt;
  &lt;span class="nt"&gt;&amp;lt;/details&amp;gt;&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;


&lt;p&gt;The &lt;code&gt;&amp;lt;details&amp;gt;&lt;/code&gt; element is used to hide additional information until the user clicks on the &lt;code&gt;&amp;lt;summary&amp;gt;&lt;/code&gt;element. &lt;br&gt;
This is helpful for providing more information about something without cluttering the page. &lt;/p&gt;

&lt;p&gt;The details are only shown when the user is interested in seeing them. &lt;/p&gt;

&lt;p&gt;In the example code, the details are hidden by default, and can be revealed by clicking on the summary text. &lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;code&gt;&amp;lt;mark&amp;gt;&lt;/code&gt;
&lt;/li&gt;
&lt;/ul&gt;
&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight html"&gt;&lt;code&gt;  &lt;span class="nt"&gt;&amp;lt;mark&amp;gt;&lt;/span&gt;This sentence is highlighted for emphasis.&lt;span class="nt"&gt;&amp;lt;/mark&amp;gt;&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;


&lt;p&gt;In this example, &lt;code&gt;&amp;lt;mark&amp;gt;&lt;/code&gt; is used to highlight the content inside it to make it more noticeable. &lt;br&gt;
This can be helpful for emphasizing specific information or keywords. &lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;code&gt;&amp;lt;figure&amp;gt;&lt;/code&gt;
&lt;/li&gt;
&lt;/ul&gt;
&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight html"&gt;&lt;code&gt;&lt;span class="nt"&gt;&amp;lt;figure&amp;gt;&lt;/span&gt;
    &lt;span class="nt"&gt;&amp;lt;img&lt;/span&gt; &lt;span class="na"&gt;src=&lt;/span&gt;&lt;span class="s"&gt;"https://example.com/image.jpg"&lt;/span&gt;&lt;span class="nt"&gt;&amp;gt;&lt;/span&gt;
    &lt;span class="nt"&gt;&amp;lt;figcaption&amp;gt;&lt;/span&gt;A picture of a cat.&lt;span class="nt"&gt;&amp;lt;/figcaption&amp;gt;&lt;/span&gt;
&lt;span class="nt"&gt;&amp;lt;/figure&amp;gt;&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;


&lt;p&gt;This code would display an image of a cat, with the caption "A picture of a cat" below it. &lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;code&gt;&amp;lt;time&amp;gt;&lt;/code&gt;
&lt;/li&gt;
&lt;/ul&gt;
&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight html"&gt;&lt;code&gt;&lt;span class="nt"&gt;&amp;lt;time&lt;/span&gt; &lt;span class="na"&gt;datetime=&lt;/span&gt;&lt;span class="s"&gt;"2023-01-01"&lt;/span&gt;&lt;span class="nt"&gt;&amp;gt;&lt;/span&gt;January 1, 2023&lt;span class="nt"&gt;&amp;lt;/time&amp;gt;&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;


&lt;p&gt;In this example, the text "January 1, 2023" is wrapped in a &lt;code&gt;&amp;lt;time&amp;gt;&lt;/code&gt;element, which makes it a machine-readable date. &lt;/p&gt;

&lt;p&gt;Another way to use the &lt;code&gt;&amp;lt;time&amp;gt;&lt;/code&gt; element is to create a link to a specific date and time on a calendar, like this:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight html"&gt;&lt;code&gt;&lt;span class="nt"&gt;&amp;lt;p&amp;gt;&lt;/span&gt;Let's meet on &lt;span class="nt"&gt;&amp;lt;time&lt;/span&gt; &lt;span class="na"&gt;datetime=&lt;/span&gt;&lt;span class="s"&gt;"2023-01-15T18:00"&lt;/span&gt;&lt;span class="nt"&gt;&amp;gt;&lt;/span&gt;January 15th at 6pm&lt;span class="nt"&gt;&amp;lt;/time&amp;gt;&lt;/span&gt;.&lt;span class="nt"&gt;&amp;lt;/p&amp;gt;&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;This code would create a link to the date and time specified, making it easy for users to add the event to their calendar. &lt;/p&gt;

&lt;h3&gt;
  
  
  Why HTML semantics should be used
&lt;/h3&gt;

&lt;ol&gt;
&lt;li&gt;
&lt;p&gt;Accessibility&lt;/p&gt;

&lt;p&gt;Semantic HTML ensures that websites are accessible to all users, including those with disabilities or using assistive technologies. &lt;/p&gt;

&lt;p&gt;By using semantic elements, developers can create pages that are more likely to be correctly interpreted by search engines, making the content easier to find. In addition, using meaningful HTML tags can help with content management, allowing for more efficient editing and updating of a website.&lt;/p&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;p&gt;SEO Benefits&lt;/p&gt;

&lt;p&gt;Search engines are designed to analyze and organize content based on its semantic meaning. &lt;/p&gt;

&lt;p&gt;By using HTML tags that convey the meaning and structure of the content, websites can improve their search engine optimization (SEO) and gain a competitive advantage in the search results. &lt;br&gt;
Semantic HTML provides a set of tags that are specifically designed to convey the meaning and structure of the content, allowing search engines to understand and index the content more effectively.&lt;br&gt;
This boosts visibility and search rankings.&lt;/p&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;p&gt;Code Maintainability&lt;/p&gt;

&lt;p&gt;The use of semantic HTML makes it easier to maintain and update code.&lt;/p&gt;

&lt;p&gt;The tags are self-explanatory and follow a logical structure, making it easy to find and fix errors.&lt;/p&gt;

&lt;p&gt;Additionally, it allows developers to update and modify the code without breaking the existing structure and functionality. This means that websites built with semantic HTML are easier to scale and adapt as content and requirements change.&lt;/p&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;p&gt;Cross-Device and Cross-Browser Compatibility&lt;/p&gt;

&lt;p&gt;Semantic HTML promotes consistent user experiences across different devices and browsers. It ensures that the structure and formatting of a webpage remain intact and responsive regardless of the device or browser being used.&lt;br&gt;
This results in a more user-friendly and accessible experience for all users, regardless of their device or browser of choice.&lt;/p&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;p&gt;Future-Proofing&lt;/p&gt;

&lt;p&gt;Semantic HTML allows developers to create websites that are future-proofed against changes in technologies and design trends. Because the content is represented by tags that describe its purpose rather than its presentation, the code remains adaptable and flexible as new technologies emerge. This provides a long-term solution for maintaining and updating websites, saving time and resources in the future.&lt;/p&gt;
&lt;/li&gt;
&lt;/ol&gt;

&lt;h4&gt;
  
  
  Conclusion
&lt;/h4&gt;

&lt;p&gt;Incorporating semantic HTML elements into our web pages can have numerous benefits.&lt;/p&gt;

&lt;p&gt;It improves accessibility for assistive technologies and search engines, making it easier for them to understand and navigate the content.&lt;/p&gt;

&lt;p&gt;Semantic HTML is essential for web developers as it enhances accessibility, improves search engine visibility, simplifies website maintenance and scalability, ensures compatibility, and future-proofs websites.&lt;/p&gt;

&lt;p&gt;It also promotes best practices, enhances user experience, and provides a solid foundation for successful web development projects.&lt;/p&gt;

</description>
    </item>
    <item>
      <title>Mastering Flexbox Basics: A Comprehensive Guide</title>
      <dc:creator>Henrietta Okechukwu O (Hariet)</dc:creator>
      <pubDate>Fri, 24 Nov 2023 09:34:21 +0000</pubDate>
      <link>https://dev.to/henrietta_hariet/flexbox-4gdl</link>
      <guid>https://dev.to/henrietta_hariet/flexbox-4gdl</guid>
      <description>&lt;p&gt;Have you ever encountered alignment challenges or want to get better at aligning content as a developer?&lt;br&gt;
Those days of using floats, positioning, and complicated calculations to align content were truly frustrating.&lt;/p&gt;

&lt;p&gt;But don't worry because Flexbox is here. This game-changing tool allows developers to effortlessly create complex and responsive web layouts.&lt;/p&gt;

&lt;p&gt;In this article, we will explore the foundations of Flexbox, diving into its essential concepts and properties. Prepare yourself to revolutionize your web design skills with Flexbox!&lt;/p&gt;
&lt;h2&gt;
  
  
  What is Flexbox?
&lt;/h2&gt;

&lt;p&gt;Flexbox also referred to as Flexible Box Layout, is an incredible CSS layout model that was introduced in CSS3. It empowers web designers to create flexible and responsive layouts for web pages. This layout model operates in a single direction, either vertically (from left to right) or horizontally (from top to bottom), making it a one-dimensional layout model.&lt;/p&gt;

&lt;p&gt;One of the key benefits of Flexbox is its efficiency in arranging, aligning, and distributing elements within a container. By utilizing Flexbox, web interfaces can be built with ease, ensuring that they automatically adapt to different screen sizes and devices.&lt;/p&gt;
&lt;h2&gt;
  
  
  Concepts of Flexbox
&lt;/h2&gt;

&lt;p&gt;When it comes to understanding and utilizing Flexbox, there are a few key concepts to keep in mind.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;They are:&lt;/strong&gt;&lt;br&gt;
&lt;/p&gt;
&lt;li&gt; Flex Container 
&lt;/li&gt;
&lt;li&gt; Flex items
&lt;/li&gt;
&lt;li&gt; Axes

&lt;ol&gt;
&lt;li&gt;&lt;p&gt;Flex Container&lt;br&gt;
The Flex Container, also known as the parent container, is where the Flex items are housed. In other words, the Flex items are contained inside the Flex container, which can be considered as the parent. The Flex container can have one or more Flex items as the children.&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;Flex Items&lt;br&gt;
The Flex items, also known as the child or children, are the elements that are contained inside the Flex container. These Flex items can be arranged either horizontally (along the row axis) or vertically (along the column axis). By default, they are displayed in a single row.&lt;/p&gt;&lt;/li&gt;
&lt;/ol&gt;

&lt;p&gt;Before transforming a container into a Flexbox, you need to set the display property to either &lt;code&gt;flex&lt;/code&gt; or &lt;code&gt;inline-flex&lt;/code&gt;, depending on your desired design. This allows the parent container to become a Flex container and enables the Flexbox functionality.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Example: Code illustrating the syntax for flexibility of flexbox&lt;/strong&gt;&lt;br&gt;
&lt;/p&gt;

&lt;pre class="highlight css"&gt;&lt;code&gt;&lt;span class="nc"&gt;.flex-container&lt;/span&gt;
&lt;span class="p"&gt;{&lt;/span&gt;
&lt;span class="nl"&gt;display&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="n"&gt;flex&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;
&lt;span class="err"&gt;/_or&lt;/span&gt; &lt;span class="err"&gt;you&lt;/span&gt; &lt;span class="err"&gt;can&lt;/span&gt; &lt;span class="err"&gt;set&lt;/span&gt; &lt;span class="err"&gt;the&lt;/span&gt; &lt;span class="err"&gt;value&lt;/span&gt; &lt;span class="err"&gt;to&lt;/span&gt; &lt;span class="err"&gt;inline_/&lt;/span&gt;
&lt;span class="nl"&gt;display&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="nb"&gt;inline&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;
&lt;span class="p"&gt;}&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;



&lt;p&gt;It's important to note that Flexbox operates on items that are directly inside a container. Therefore, it's crucial to properly structure your HTML markup to ensure the correct implementation of Flexbox.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Below are code illustrations describing Flex containers and Flex items.&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;Code html&lt;br&gt;
&lt;/p&gt;

&lt;pre class="highlight html"&gt;&lt;code&gt;&lt;span class="nt"&gt;&amp;lt;html&amp;gt;&lt;/span&gt;
    &lt;span class="nt"&gt;&amp;lt;div&lt;/span&gt; &lt;span class="na"&gt;class=&lt;/span&gt;&lt;span class="s"&gt;"flex-container"&lt;/span&gt;&lt;span class="nt"&gt;&amp;gt;&lt;/span&gt;
        &lt;span class="nt"&gt;&amp;lt;div&lt;/span&gt; &lt;span class="na"&gt;class=&lt;/span&gt;&lt;span class="s"&gt;"flex-item box-1"&lt;/span&gt;&lt;span class="nt"&gt;&amp;gt;&lt;/span&gt;Box 1&lt;span class="nt"&gt;&amp;lt;/div&amp;gt;&lt;/span&gt;
        &lt;span class="nt"&gt;&amp;lt;div&lt;/span&gt; &lt;span class="na"&gt;class=&lt;/span&gt;&lt;span class="s"&gt;"flex-item box-2"&lt;/span&gt;&lt;span class="nt"&gt;&amp;gt;&lt;/span&gt;Box 2&lt;span class="nt"&gt;&amp;lt;/div&amp;gt;&lt;/span&gt;
        &lt;span class="nt"&gt;&amp;lt;div&lt;/span&gt; &lt;span class="na"&gt;class=&lt;/span&gt;&lt;span class="s"&gt;"flex-item box-3"&lt;/span&gt;&lt;span class="nt"&gt;&amp;gt;&lt;/span&gt;Box 3&lt;span class="nt"&gt;&amp;lt;/div&amp;gt;&lt;/span&gt;
    &lt;span class="nt"&gt;&amp;lt;/div&amp;gt;&lt;/span&gt;
&lt;span class="nt"&gt;&amp;lt;/html&amp;gt;&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;



&lt;p&gt;code css&lt;br&gt;
&lt;/p&gt;

&lt;pre class="highlight css"&gt;&lt;code&gt;&lt;span class="nt"&gt;body&lt;/span&gt; &lt;span class="p"&gt;{&lt;/span&gt;
    &lt;span class="nl"&gt;font-family&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="n"&gt;Arial&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="n"&gt;Helvetica&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="nb"&gt;sans-serif&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;
    &lt;span class="nl"&gt;margin&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="m"&gt;0&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;
&lt;span class="p"&gt;}&lt;/span&gt;

&lt;span class="nc"&gt;.flex-container&lt;/span&gt; &lt;span class="p"&gt;{&lt;/span&gt;
    &lt;span class="nl"&gt;border&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="m"&gt;8px&lt;/span&gt; &lt;span class="nb"&gt;solid&lt;/span&gt; &lt;span class="no"&gt;purple&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;
    &lt;span class="nl"&gt;display&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="n"&gt;flex&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;
    &lt;span class="nl"&gt;background-color&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="no"&gt;black&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;
    &lt;span class="nl"&gt;height&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="m"&gt;300px&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;
&lt;span class="p"&gt;}&lt;/span&gt;

&lt;span class="nc"&gt;.flex-item&lt;/span&gt; &lt;span class="p"&gt;{&lt;/span&gt;
    &lt;span class="nl"&gt;height&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="m"&gt;100px&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;
    &lt;span class="nl"&gt;width&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="m"&gt;100px&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;
    &lt;span class="nl"&gt;color&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="m"&gt;#2b0606&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;
    &lt;span class="nl"&gt;font-size&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="m"&gt;2rem&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;
    &lt;span class="nl"&gt;margin&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="m"&gt;4rem&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;
    &lt;span class="nl"&gt;padding&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="m"&gt;2rem&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;
    &lt;span class="nl"&gt;text-align&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="nb"&gt;center&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;
    &lt;span class="nl"&gt;font-weight&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="nb"&gt;bold&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;
&lt;span class="p"&gt;}&lt;/span&gt;

&lt;span class="nc"&gt;.box-1&lt;/span&gt; &lt;span class="p"&gt;{&lt;/span&gt;
    &lt;span class="nl"&gt;background-color&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="no"&gt;greenyellow&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;
&lt;span class="p"&gt;}&lt;/span&gt;
&lt;span class="nc"&gt;.box-2&lt;/span&gt; &lt;span class="p"&gt;{&lt;/span&gt;
    &lt;span class="nl"&gt;background-color&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="no"&gt;blueviolet&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;
&lt;span class="p"&gt;}&lt;/span&gt;
&lt;span class="nc"&gt;.box-3&lt;/span&gt; &lt;span class="p"&gt;{&lt;/span&gt;
    &lt;span class="nl"&gt;background-color&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="n"&gt;grey&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;
&lt;span class="p"&gt;}&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;



&lt;p&gt;The 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%2F1vp2l4ndb0ayxmcc6e6l.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%2F1vp2l4ndb0ayxmcc6e6l.png" alt="illustration of the flex container and flex item" width="800" height="243"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;NB: You can style the CSS depending on how you want your output to look.&lt;br&gt;
The border, background color, and other properties on the code source above are included for better illustration.&lt;/p&gt;

&lt;ol&gt;
&lt;li&gt;The axes
The axes consist of the main axis and the cross axis.&lt;/li&gt;
&lt;/ol&gt;

&lt;ul&gt;
&lt;li&gt;  &lt;strong&gt;Main axis&lt;/strong&gt;
The main axis is a horizontal line that extends from left to right.
The starting point on this axis is referred to as the main start, while the ending point is known as the main end.
The measurement of this axis is referred to as the main size.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;The direction in which the main axis runs is determined by the property &lt;code&gt;flex-direction&lt;/code&gt;, which can be set to either a row or column.&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt; &lt;strong&gt;Cross axis&lt;/strong&gt;
The cross-axis is perpendicular to the main axis.
The starting point on this axis is called the cross start, and the ending point is known as the cross end.
The length of this axis is referred to as the cross size.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;Image illustrating the main axis and the cross axis&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%2Fzf63mvsvyo05uws61h51.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%2Fzf63mvsvyo05uws61h51.png" alt="Image description" width="800" height="405"&gt;&lt;/a&gt;&lt;/p&gt;
&lt;h2&gt;
  
  
  Flexbox Properties
&lt;/h2&gt;

&lt;p&gt;Flexbox properties are essential for governing the behavior of flex items within a flex container.&lt;/p&gt;

&lt;p&gt;These properties can be divided into two groups: &lt;br&gt;
 &lt;/p&gt;
&lt;/li&gt;
&lt;li&gt;container properties
 &lt;/li&gt;
&lt;li&gt;flex item properties

&lt;ol&gt;
&lt;li&gt;&lt;p&gt;Container Properties&lt;br&gt;
Container properties include flex-direction, flex-wrap, flex-flow, justify-content, flex-grow, flex-shrink, and align-items.&lt;br&gt;
These properties control how flex items are arranged and aligned within the flex container.&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;Flex Item Properties&lt;br&gt;
Flex item properties include order, flex, flex-grow, flex-shrink, and align-self.&lt;br&gt;
These properties dictate the individual behavior of each flex item within the container, such as their order, flexibility, and alignment.&lt;/p&gt;&lt;/li&gt;
&lt;/ol&gt;
&lt;h3&gt;
  
  
  Let's explain container properties
&lt;/h3&gt;
&lt;h2&gt;
  
  
  1. Flex-Direction
&lt;/h2&gt;

&lt;p&gt;Flex direction property determines the main axis and its direction, which in turn determines whether the flex items are positioned in a row or column inside the container.&lt;/p&gt;

&lt;p&gt;The possible values for this property are:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;code&gt;flex direction-row&lt;/code&gt; : 
By default, the main axis of Flexbox runs from left to right.
&lt;/li&gt;
&lt;/ul&gt;
&lt;pre class="highlight css"&gt;&lt;code&gt;&lt;span class="nc"&gt;.flex-container&lt;/span&gt; &lt;span class="p"&gt;{&lt;/span&gt;
    &lt;span class="nl"&gt;flex-direction&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="n"&gt;row&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;
&lt;span class="p"&gt;}&lt;/span&gt;
&lt;/code&gt;&lt;/pre&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%2Ftzi13esx9tkwqlol46oz.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%2Ftzi13esx9tkwqlol46oz.png" alt="Image description" width="800" height="335"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;code&gt;Flex direction column&lt;/code&gt; :
By setting the flex-direction property to the column, you can change the direction of the main axis to vertical.
&lt;/li&gt;
&lt;/ul&gt;
&lt;pre class="highlight css"&gt;&lt;code&gt;&lt;span class="nc"&gt;.flex-container&lt;/span&gt; &lt;span class="p"&gt;{&lt;/span&gt;
    &lt;span class="nl"&gt;flex-direction&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="n"&gt;column&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;
&lt;span class="p"&gt;}&lt;/span&gt;
&lt;/code&gt;&lt;/pre&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%2F1cfwnikedr6hmqy5s8rg.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%2F1cfwnikedr6hmqy5s8rg.png" alt="Image description" width="800" height="401"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt; &lt;code&gt;flex-direction row-reverse&lt;/code&gt;:
This property value reverses the order of the flex items in a row.
&lt;/li&gt;
&lt;/ul&gt;
&lt;pre class="highlight css"&gt;&lt;code&gt;&lt;span class="nc"&gt;.flex-container&lt;/span&gt;&lt;span class="p"&gt;{&lt;/span&gt;
&lt;span class="nl"&gt;flex-direction&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="n"&gt;row-reverse&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;
&lt;span class="p"&gt;}&lt;/span&gt;
&lt;/code&gt;&lt;/pre&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%2F6zx3nhe3zgihou190czt.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%2F6zx3nhe3zgihou190czt.png" alt="Image description" width="800" height="390"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt; &lt;code&gt;reverse column&lt;/code&gt;
This property value reverses the order of the flex items in a column.
&lt;/li&gt;
&lt;/ul&gt;
&lt;pre class="highlight css"&gt;&lt;code&gt;&lt;span class="nc"&gt;.flex-container&lt;/span&gt; &lt;span class="p"&gt;{&lt;/span&gt;
    &lt;span class="nl"&gt;flex-direction&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="n"&gt;column-reverse&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;
&lt;span class="p"&gt;}&lt;/span&gt;
&lt;/code&gt;&lt;/pre&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%2Fecnx8ek6jq9141wkmu5d.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%2Fecnx8ek6jq9141wkmu5d.png" alt="Image description" width="800" height="397"&gt;&lt;/a&gt;&lt;/p&gt;
&lt;h2&gt;
  
  
  Flex wrap
&lt;/h2&gt;

&lt;p&gt;Flex containers can have multiple lines of items if space is limited.&lt;br&gt;
The flex-wrap property controls whether the items should wrap onto new lines or stay on a single line. Its values include nowrap, wrap, or wrap-reverse.&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;code&gt;flex-wrap: nowrap&lt;/code&gt;
This is the default value and ensures that the flex items stay on a single line, even if it causes overflow.
&lt;/li&gt;
&lt;/ul&gt;
&lt;pre class="highlight css"&gt;&lt;code&gt;&lt;span class="nc"&gt;.flex-container&lt;/span&gt; &lt;span class="p"&gt;{&lt;/span&gt;
    &lt;span class="nl"&gt;flex-wrap&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="nb"&gt;nowrap&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;
&lt;span class="p"&gt;}&lt;/span&gt;
&lt;/code&gt;&lt;/pre&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%2Fed6t2j0g5vnx64dkyafp.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%2Fed6t2j0g5vnx64dkyafp.png" alt="Image description" width="800" height="262"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;code&gt;flex-wrap&lt;/code&gt;: wrap
By setting the flex-wrap property to wrap, the flex items are allowed to wrap onto new lines when necessary.
&lt;/li&gt;
&lt;/ul&gt;
&lt;pre class="highlight css"&gt;&lt;code&gt;&lt;span class="nc"&gt;.flex-container&lt;/span&gt; &lt;span class="p"&gt;{&lt;/span&gt;
    &lt;span class="nl"&gt;flex-wrap&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="n"&gt;wrap&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;
&lt;span class="p"&gt;}&lt;/span&gt;
&lt;/code&gt;&lt;/pre&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%2Fbrmk4v2vnpr7vumbjui0.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%2Fbrmk4v2vnpr7vumbjui0.png" alt="Image description" width="800" height="360"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;code&gt;flex-wrap: wrap-reverse&lt;/code&gt;
This property value wraps the flex items onto new lines but in reverse order.
&lt;/li&gt;
&lt;/ul&gt;
&lt;pre class="highlight css"&gt;&lt;code&gt;&lt;span class="nc"&gt;.flex-container&lt;/span&gt; &lt;span class="p"&gt;{&lt;/span&gt;
    &lt;span class="nl"&gt;flex-wrap&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="n"&gt;wrap-reverse&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;
&lt;span class="p"&gt;}&lt;/span&gt;
&lt;/code&gt;&lt;/pre&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%2Fsc62kma63ki0v3s8rqid.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%2Fsc62kma63ki0v3s8rqid.png" alt="Image description" width="800" height="382"&gt;&lt;/a&gt;&lt;/p&gt;
&lt;h2&gt;
  
  
  Flex Flow
&lt;/h2&gt;

&lt;p&gt;Flex-flow is a combination of the flex-direction and flex-wrap properties, allowing you to specify both the main axis and the wrapping behavior in a single property.&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;&lt;code&gt;flex-flow: column nowrap&lt;/code&gt;&lt;/li&gt;
&lt;/ul&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%2Fuy6obzjgd39tt4qs0hxv.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%2Fuy6obzjgd39tt4qs0hxv.png" alt="Image description" width="775" height="452"&gt;&lt;/a&gt;&lt;/p&gt;
&lt;h2&gt;
  
  
  Justify Content
&lt;/h2&gt;

&lt;p&gt;The justify-content property controls how the flex items are spaced along the main axis of the flex container. It allows for spacing between items and redistribution of extra space.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Here are various values for the justify-content property&lt;/strong&gt;:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;code&gt;flex start&lt;/code&gt;
This aligns the items at the start of the main axis.
&lt;/li&gt;
&lt;/ul&gt;
&lt;pre class="highlight css"&gt;&lt;code&gt;&lt;span class="nc"&gt;.flex-container&lt;/span&gt; &lt;span class="p"&gt;{&lt;/span&gt;
    &lt;span class="nl"&gt;justify-content&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="n"&gt;flex-start&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;
&lt;span class="p"&gt;}&lt;/span&gt;
&lt;/code&gt;&lt;/pre&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%2F68t0gz0e9mmfv9otgxx3.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%2F68t0gz0e9mmfv9otgxx3.png" alt="Image description" width="800" height="335"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;code&gt;flex end&lt;/code&gt;
This aligns the items at the end of the main axis.
&lt;/li&gt;
&lt;/ul&gt;
&lt;pre class="highlight css"&gt;&lt;code&gt;&lt;span class="nc"&gt;.flex-container&lt;/span&gt; &lt;span class="p"&gt;{&lt;/span&gt;
    &lt;span class="nl"&gt;justify-content&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="n"&gt;flex-end&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;
&lt;span class="p"&gt;}&lt;/span&gt;
&lt;/code&gt;&lt;/pre&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%2F30niiot5ld2jga2sqbsb.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%2F30niiot5ld2jga2sqbsb.png" alt="Image description" width="800" height="337"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;code&gt;Center&lt;/code&gt;
It centers the items along the main axis.
&lt;/li&gt;
&lt;/ul&gt;
&lt;pre class="highlight css"&gt;&lt;code&gt;&lt;span class="nc"&gt;.flex-container&lt;/span&gt; &lt;span class="p"&gt;{&lt;/span&gt;
    &lt;span class="nl"&gt;justify-content&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="nb"&gt;center&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;
&lt;span class="p"&gt;}&lt;/span&gt;
&lt;/code&gt;&lt;/pre&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%2Flvtpf0dazv9h6vhydg83.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%2Flvtpf0dazv9h6vhydg83.png" alt="Image description" width="800" height="342"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;You can also set the flex-direction to the column and play around justify content.&lt;br&gt;
Example:&lt;br&gt;
&lt;/p&gt;

&lt;pre class="highlight css"&gt;&lt;code&gt;&lt;span class="nc"&gt;.flex-container&lt;/span&gt; &lt;span class="p"&gt;{&lt;/span&gt;
    &lt;span class="nl"&gt;flex-direction&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="n"&gt;column&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;
    &lt;span class="nl"&gt;justify-content&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="nb"&gt;center&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;
&lt;span class="p"&gt;}&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;



&lt;ul&gt;
&lt;li&gt;&lt;code&gt;Space Between&lt;/code&gt;&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;This distributes the items evenly along the main axis&lt;/p&gt;

&lt;p&gt;Code&lt;br&gt;
&lt;/p&gt;

&lt;pre class="highlight css"&gt;&lt;code&gt;&lt;span class="nc"&gt;.flex-container&lt;/span&gt; &lt;span class="p"&gt;{&lt;/span&gt;
    &lt;span class="nl"&gt;justify-content&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="n"&gt;space-between&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;
&lt;span class="p"&gt;}&lt;/span&gt;
&lt;/code&gt;&lt;/pre&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%2Fy3bkcipfa9z1ikjdvy8w.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%2Fy3bkcipfa9z1ikjdvy8w.png" alt="Image description" width="800" height="133"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;code&gt;Space around&lt;/code&gt;
Distribute the items evenly along the main axis
&lt;/li&gt;
&lt;/ul&gt;

&lt;pre class="highlight css"&gt;&lt;code&gt;&lt;span class="nc"&gt;.flex-container&lt;/span&gt; &lt;span class="p"&gt;{&lt;/span&gt;
    &lt;span class="nl"&gt;justify-content&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="n"&gt;space-around&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;
&lt;span class="p"&gt;}&lt;/span&gt;
&lt;/code&gt;&lt;/pre&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%2Fs1ox1qrgb4am12nj5dah.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%2Fs1ox1qrgb4am12nj5dah.png" alt="Image description" width="800" height="335"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;code&gt;space evenly&lt;/code&gt;
Distribute the items evenly along the main axis, including space before the first item and after the last item.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;Code&lt;br&gt;
&lt;/p&gt;

&lt;pre class="highlight css"&gt;&lt;code&gt;&lt;span class="nc"&gt;.flex-container&lt;/span&gt; &lt;span class="p"&gt;{&lt;/span&gt;
    &lt;span class="nl"&gt;justify-content&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="n"&gt;space-evenly&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;
&lt;span class="p"&gt;}&lt;/span&gt;
&lt;/code&gt;&lt;/pre&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%2Fcfhqzsfuteiexpvmx5j1.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%2Fcfhqzsfuteiexpvmx5j1.png" alt="Image description" width="800" height="342"&gt;&lt;/a&gt;&lt;/p&gt;
&lt;h2&gt;
  
  
  Align-Items
&lt;/h2&gt;

&lt;p&gt;The align-items property controls how the flex items are spaced along the cross-axis of the flex container.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Here are the different values for align-items:&lt;/strong&gt;&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;code&gt;flex-start&lt;/code&gt;
This aligns the items at the start of the cross-axis. This is the default value. Just like justify content.
&lt;/li&gt;
&lt;/ul&gt;
&lt;pre class="highlight css"&gt;&lt;code&gt;&lt;span class="nc"&gt;.flex-container&lt;/span&gt; &lt;span class="p"&gt;{&lt;/span&gt;
    &lt;span class="nl"&gt;align-items&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="n"&gt;flex-start&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;
&lt;span class="p"&gt;}&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;


&lt;ul&gt;
&lt;li&gt;
&lt;code&gt;center value&lt;/code&gt;
Centers the items along the cross-axis.
&lt;/li&gt;
&lt;/ul&gt;
&lt;pre class="highlight css"&gt;&lt;code&gt;&lt;span class="nc"&gt;.flex-container&lt;/span&gt; &lt;span class="p"&gt;{&lt;/span&gt;
    &lt;span class="nl"&gt;align-items&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="nb"&gt;center&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;
&lt;span class="p"&gt;}&lt;/span&gt;
&lt;/code&gt;&lt;/pre&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%2Frhgeit3cmy6h4m3cleve.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%2Frhgeit3cmy6h4m3cleve.png" alt="Image description" width="800" height="404"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;code&gt;Baseline&lt;/code&gt;
Align the items such that their baselines are aligned.
&lt;/li&gt;
&lt;/ul&gt;
&lt;pre class="highlight css"&gt;&lt;code&gt;&lt;span class="nc"&gt;.flex-container&lt;/span&gt; &lt;span class="p"&gt;{&lt;/span&gt;
    &lt;span class="nl"&gt;align-items&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="nb"&gt;baseline&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;
&lt;span class="p"&gt;}&lt;/span&gt;
&lt;/code&gt;&lt;/pre&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%2Felbwil5gyjm3rlwy0bo5.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%2Felbwil5gyjm3rlwy0bo5.png" alt="Image description" width="800" height="186"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;code&gt;Stretch&lt;/code&gt;
Stretches the items to fit the height of the container.
You can set the height property to notice the effect.
&lt;/li&gt;
&lt;/ul&gt;
&lt;pre class="highlight css"&gt;&lt;code&gt;&lt;span class="nc"&gt;.flex-container&lt;/span&gt; &lt;span class="p"&gt;{&lt;/span&gt;
    &lt;span class="nl"&gt;display&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="n"&gt;flex&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;
    &lt;span class="nl"&gt;height&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="m"&gt;500px&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;
    &lt;span class="nl"&gt;align-items&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="n"&gt;stretch&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;
&lt;span class="p"&gt;}&lt;/span&gt;
&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%2Fhvh3vund0tolfhtbbfxl.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%2Fhvh3vund0tolfhtbbfxl.png" alt="Image description" width="800" height="336"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;code&gt;End&lt;/code&gt;
Align the items at the end of the cross-axis.
&lt;/li&gt;
&lt;/ul&gt;
&lt;pre class="highlight css"&gt;&lt;code&gt;&lt;span class="nc"&gt;.flex-container&lt;/span&gt; &lt;span class="p"&gt;{&lt;/span&gt;
    &lt;span class="nl"&gt;align-items&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="n"&gt;end&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;
&lt;span class="p"&gt;}&lt;/span&gt;
&lt;/code&gt;&lt;/pre&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%2Fyu2aqgniwflx2hxxe1zj.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%2Fyu2aqgniwflx2hxxe1zj.png" alt="Image description" width="800" height="321"&gt;&lt;/a&gt;&lt;br&gt;
You can also play around with justify content and align items' property together.&lt;/p&gt;

&lt;p&gt;Example&lt;br&gt;
&lt;/p&gt;

&lt;pre class="highlight css"&gt;&lt;code&gt;&lt;span class="nc"&gt;.flex-container&lt;/span&gt; &lt;span class="p"&gt;{&lt;/span&gt;
    &lt;span class="nl"&gt;justify-content&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="n"&gt;space-around&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;
    &lt;span class="nl"&gt;align-items&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="n"&gt;flex-end&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;
&lt;span class="p"&gt;}&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;



&lt;h2&gt;
  
  
  Align Content
&lt;/h2&gt;

&lt;p&gt;The align-content property is similar to align-items, but it applies to the container itself instead of the individual items. This can be useful if you want to align the container relative to the page or another container.&lt;/p&gt;

&lt;p&gt;Note that you need to have a height set and enable wrapping for the property to work properly.&lt;/p&gt;

&lt;p&gt;Let's demonstrate using align content with the value center, you can also apply other values as well.&lt;br&gt;
&lt;/p&gt;

&lt;pre class="highlight css"&gt;&lt;code&gt;&lt;span class="nc"&gt;.container&lt;/span&gt; &lt;span class="p"&gt;{&lt;/span&gt;
    &lt;span class="nl"&gt;flex-wrap&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="n"&gt;wrap&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;
    &lt;span class="nl"&gt;align-content&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="nb"&gt;center&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;
&lt;span class="p"&gt;}&lt;/span&gt;
&lt;/code&gt;&lt;/pre&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%2Flthfxs1amnzwoy55r03s.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%2Flthfxs1amnzwoy55r03s.png" alt="Image description" width="800" height="404"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;h3&gt;
  
  
  Let's discuss the properties of flex items.
&lt;/h3&gt;

&lt;p&gt;When applying flex item property you can either target the whole item or individual item depending on your preference.&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;code&gt;Order&lt;/code&gt;
The order property controls and specifies the visual order in which flex items are displayed within a flex container.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;It does not affect the order in the HTML markup.&lt;br&gt;
By assigning different order values to flex items, you can rearrange their display order.&lt;br&gt;
&lt;/p&gt;

&lt;pre class="highlight css"&gt;&lt;code&gt;&lt;span class="nt"&gt;body&lt;/span&gt; &lt;span class="p"&gt;{&lt;/span&gt;
    &lt;span class="nl"&gt;font-family&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="n"&gt;Arial&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="n"&gt;Helvetica&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="nb"&gt;sans-serif&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;
    &lt;span class="nl"&gt;margin&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="m"&gt;0&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;
&lt;span class="p"&gt;}&lt;/span&gt;

&lt;span class="nc"&gt;.flex-container&lt;/span&gt; &lt;span class="p"&gt;{&lt;/span&gt;
    &lt;span class="nl"&gt;border&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="m"&gt;4px&lt;/span&gt; &lt;span class="nb"&gt;solid&lt;/span&gt; &lt;span class="no"&gt;purple&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;
    &lt;span class="nl"&gt;display&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="n"&gt;flex&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;
    &lt;span class="nl"&gt;background-color&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="no"&gt;black&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;
    &lt;span class="nl"&gt;height&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="m"&gt;200px&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;
&lt;span class="p"&gt;}&lt;/span&gt;

&lt;span class="nc"&gt;.flex-item&lt;/span&gt; &lt;span class="p"&gt;{&lt;/span&gt;
    &lt;span class="nl"&gt;color&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="m"&gt;#2b0606&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;
    &lt;span class="nl"&gt;font-size&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="m"&gt;2rem&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;
    &lt;span class="nl"&gt;padding&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="m"&gt;2rem&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;
    &lt;span class="nl"&gt;text-align&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="nb"&gt;center&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;
    &lt;span class="nl"&gt;font-weight&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="nb"&gt;bold&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;
&lt;span class="p"&gt;}&lt;/span&gt;

&lt;span class="nc"&gt;.box-1&lt;/span&gt; &lt;span class="p"&gt;{&lt;/span&gt;
    &lt;span class="nl"&gt;background-color&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="no"&gt;greenyellow&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;
    &lt;span class="nl"&gt;order&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="m"&gt;1&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;
&lt;span class="p"&gt;}&lt;/span&gt;
&lt;span class="nc"&gt;.box-2&lt;/span&gt; &lt;span class="p"&gt;{&lt;/span&gt;
    &lt;span class="nl"&gt;background-color&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="no"&gt;blueviolet&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;
    &lt;span class="nl"&gt;order&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="m"&gt;1&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;
&lt;span class="p"&gt;}&lt;/span&gt;
&lt;span class="nc"&gt;.box-3&lt;/span&gt; &lt;span class="p"&gt;{&lt;/span&gt;
    &lt;span class="nl"&gt;background-color&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="n"&gt;grey&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;
&lt;span class="p"&gt;}&lt;/span&gt;
&lt;span class="nc"&gt;.box-4&lt;/span&gt; &lt;span class="p"&gt;{&lt;/span&gt;
    &lt;span class="nl"&gt;background-color&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="n"&gt;codetblue&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;
    &lt;span class="nl"&gt;order&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="m"&gt;1&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;
&lt;span class="p"&gt;}&lt;/span&gt;
&lt;span class="nc"&gt;.box-5&lt;/span&gt; &lt;span class="p"&gt;{&lt;/span&gt;
    &lt;span class="nl"&gt;background-color&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="no"&gt;chocolate&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;
&lt;span class="p"&gt;}&lt;/span&gt;
&lt;span class="nc"&gt;.box-6&lt;/span&gt; &lt;span class="p"&gt;{&lt;/span&gt;
    &lt;span class="nl"&gt;background-color&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="no"&gt;goldenrod&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;
&lt;span class="p"&gt;}&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;



&lt;p&gt;The output when you set the order property to 1 on item 2&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%2F0xuw46rtab1ic3t9fgin.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%2F0xuw46rtab1ic3t9fgin.png" alt="Image description" width="800" height="166"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;The output when you set the order property to 1 on items 2 and 4&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%2Fk1gcmccqcv6kpkrw0r6l.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%2Fk1gcmccqcv6kpkrw0r6l.png" alt="Image description" width="800" height="175"&gt;&lt;/a&gt;&lt;/p&gt;
&lt;h2&gt;
  
  
  Flex grow
&lt;/h2&gt;

&lt;p&gt;The flex-grow property determines how much an item can grow or stretch to fill the available space in a flex container.&lt;br&gt;
A value of 1 means the item can grow to fill the available space, while a value of 0 means it will not grow at all.&lt;br&gt;
You can also use fractional values, like "0.5", which means the item will grow half as much as other items or you can set it to the value of your choice.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Before applying Flex grow&lt;/strong&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%2Fhcxocgoldwic02cj5gtz.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%2Fhcxocgoldwic02cj5gtz.png" alt="Image description" width="800" height="80"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;After applying flex-grow&lt;/strong&gt;&lt;br&gt;
Example 1:&lt;br&gt;
&lt;/p&gt;

&lt;pre class="highlight css"&gt;&lt;code&gt;&lt;span class="nc"&gt;.box-1&lt;/span&gt; &lt;span class="p"&gt;{&lt;/span&gt;
    &lt;span class="nl"&gt;background-color&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="no"&gt;greenyellow&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;
&lt;span class="p"&gt;}&lt;/span&gt;
&lt;span class="nc"&gt;.box-2&lt;/span&gt; &lt;span class="p"&gt;{&lt;/span&gt;
    &lt;span class="nl"&gt;background-color&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="no"&gt;blueviolet&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;
    &lt;span class="nl"&gt;flex-grow&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="m"&gt;2&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;
&lt;span class="p"&gt;}&lt;/span&gt;
&lt;span class="nc"&gt;.box-3&lt;/span&gt; &lt;span class="p"&gt;{&lt;/span&gt;
    &lt;span class="nl"&gt;background-color&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="n"&gt;grey&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;
&lt;span class="p"&gt;}&lt;/span&gt;
&lt;span class="nc"&gt;.box-4&lt;/span&gt; &lt;span class="p"&gt;{&lt;/span&gt;
    &lt;span class="nl"&gt;background-color&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="n"&gt;codetblue&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;
&lt;span class="p"&gt;}&lt;/span&gt;
&lt;span class="nc"&gt;.box-5&lt;/span&gt; &lt;span class="p"&gt;{&lt;/span&gt;
    &lt;span class="nl"&gt;background-color&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="no"&gt;chocolate&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;
&lt;span class="p"&gt;}&lt;/span&gt;
&lt;span class="nc"&gt;.box-6&lt;/span&gt; &lt;span class="p"&gt;{&lt;/span&gt;
    &lt;span class="nl"&gt;background-color&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="no"&gt;goldenrod&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;
&lt;span class="p"&gt;}&lt;/span&gt;
&lt;/code&gt;&lt;/pre&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%2F1njh9udvziaco7md2ao7.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%2F1njh9udvziaco7md2ao7.png" alt="Image description" width="800" height="99"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;Example 2:&lt;br&gt;
&lt;/p&gt;

&lt;pre class="highlight css"&gt;&lt;code&gt;&lt;span class="nc"&gt;.box-1&lt;/span&gt; &lt;span class="p"&gt;{&lt;/span&gt;
    &lt;span class="nl"&gt;background-color&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="no"&gt;greenyellow&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;
&lt;span class="p"&gt;}&lt;/span&gt;
&lt;span class="nc"&gt;.box-2&lt;/span&gt; &lt;span class="p"&gt;{&lt;/span&gt;
    &lt;span class="nl"&gt;background-color&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="no"&gt;blueviolet&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;
    &lt;span class="nl"&gt;flex-grow&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="m"&gt;1&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;
&lt;span class="p"&gt;}&lt;/span&gt;
&lt;span class="nc"&gt;.box-3&lt;/span&gt; &lt;span class="p"&gt;{&lt;/span&gt;
    &lt;span class="nl"&gt;background-color&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="n"&gt;grey&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;
    &lt;span class="nl"&gt;flex-grow&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="m"&gt;1&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;
&lt;span class="p"&gt;}&lt;/span&gt;
&lt;span class="nc"&gt;.box-4&lt;/span&gt; &lt;span class="p"&gt;{&lt;/span&gt;
    &lt;span class="nl"&gt;background-color&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="n"&gt;codetblue&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;
&lt;span class="p"&gt;}&lt;/span&gt;
&lt;span class="nc"&gt;.box-5&lt;/span&gt; &lt;span class="p"&gt;{&lt;/span&gt;
    &lt;span class="nl"&gt;background-color&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="no"&gt;chocolate&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;
&lt;span class="p"&gt;}&lt;/span&gt;
&lt;span class="nc"&gt;.box-6&lt;/span&gt; &lt;span class="p"&gt;{&lt;/span&gt;
    &lt;span class="nl"&gt;background-color&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="no"&gt;goldenrod&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;
&lt;span class="p"&gt;}&lt;/span&gt;
&lt;/code&gt;&lt;/pre&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%2Fsnq8jfb11b7flvsbzilb.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%2Fsnq8jfb11b7flvsbzilb.png" alt="Image description" width="800" height="86"&gt;&lt;/a&gt;&lt;br&gt;
You can set it evenly by targeting the flex item&lt;/p&gt;

&lt;p&gt;Example 3:&lt;br&gt;
&lt;/p&gt;

&lt;pre class="highlight css"&gt;&lt;code&gt;&lt;span class="nc"&gt;.flex-item&lt;/span&gt; &lt;span class="p"&gt;{&lt;/span&gt;
    &lt;span class="nl"&gt;color&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="m"&gt;#2b0606&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;
    &lt;span class="nl"&gt;font-size&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="m"&gt;2rem&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;
    &lt;span class="nl"&gt;padding&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="m"&gt;2rem&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;
    &lt;span class="nl"&gt;text-align&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="nb"&gt;center&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;
    &lt;span class="nl"&gt;font-weight&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="nb"&gt;bold&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;
&lt;span class="p"&gt;}&lt;/span&gt;
&lt;span class="nc"&gt;.box-1&lt;/span&gt; &lt;span class="p"&gt;{&lt;/span&gt;
    &lt;span class="nl"&gt;background-color&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="no"&gt;greenyellow&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;
    &lt;span class="nl"&gt;order&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="m"&gt;1&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;
&lt;span class="p"&gt;}&lt;/span&gt;
&lt;span class="nc"&gt;.box-2&lt;/span&gt; &lt;span class="p"&gt;{&lt;/span&gt;
    &lt;span class="nl"&gt;background-color&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="no"&gt;blueviolet&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;
&lt;span class="p"&gt;}&lt;/span&gt;
&lt;span class="nc"&gt;.box-3&lt;/span&gt; &lt;span class="p"&gt;{&lt;/span&gt;
    &lt;span class="nl"&gt;background-color&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="n"&gt;grey&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;
&lt;span class="p"&gt;}&lt;/span&gt;
&lt;span class="nc"&gt;.box-4&lt;/span&gt; &lt;span class="p"&gt;{&lt;/span&gt;
    &lt;span class="nl"&gt;background-color&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="n"&gt;codetblue&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;
&lt;span class="p"&gt;}&lt;/span&gt;
&lt;span class="nc"&gt;.box-5&lt;/span&gt; &lt;span class="p"&gt;{&lt;/span&gt;
    &lt;span class="nl"&gt;background-color&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="no"&gt;chocolate&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;
&lt;span class="p"&gt;}&lt;/span&gt;
&lt;span class="nc"&gt;.box-6&lt;/span&gt; &lt;span class="p"&gt;{&lt;/span&gt;
    &lt;span class="nl"&gt;background-color&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="no"&gt;goldenrod&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;
&lt;span class="p"&gt;}&lt;/span&gt;
&lt;/code&gt;&lt;/pre&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%2Fi2sn51cpk5mvlmn2ydqx.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%2Fi2sn51cpk5mvlmn2ydqx.png" alt="Image description" width="800" height="96"&gt;&lt;/a&gt;&lt;/p&gt;
&lt;h2&gt;
  
  
  Flex shrink
&lt;/h2&gt;

&lt;p&gt;This is the opposite of "flex-grow".&lt;br&gt;
It determines how much an item can "shrink" to fit the available space.&lt;br&gt;
A value of "1" means that the item can shrink to fit the space, so 1 is the default value.&lt;br&gt;
A value of "0" means that it will not shrink at all. You can also use fractional values, like "0.5", to control the amount of shrinkage.&lt;/p&gt;

&lt;p&gt;After applying the flex-shrink property, try resizing the browser to notice the effect.&lt;/p&gt;

&lt;p&gt;If you don't want the items to shrink then apply the code below to the whole item&lt;br&gt;
&lt;/p&gt;

&lt;pre class="highlight css"&gt;&lt;code&gt;&lt;span class="nc"&gt;.flex-container&lt;/span&gt; &lt;span class="p"&gt;{&lt;/span&gt;
    &lt;span class="nl"&gt;display&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="n"&gt;flex&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;
&lt;span class="p"&gt;}&lt;/span&gt;
&lt;span class="nc"&gt;.flex-item&lt;/span&gt; &lt;span class="p"&gt;{&lt;/span&gt;
    &lt;span class="nl"&gt;flex-shrink&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="m"&gt;0&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;
&lt;span class="p"&gt;}&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;



&lt;h3&gt;
  
  
  Flex basis
&lt;/h3&gt;

&lt;p&gt;The flex-basis property defines the initial size of a flex item before any remaining space is distributed. It can be specified in pixels (px), percentages (%), or with the value of "auto".&lt;/p&gt;

&lt;p&gt;By default, flex items have a flex-basis of "auto", meaning their size is based on their content.&lt;/p&gt;

&lt;p&gt;The output below is a flex-basis property with a value of 200px applied to the item on Box 2.&lt;br&gt;
&lt;/p&gt;

&lt;pre class="highlight css"&gt;&lt;code&gt;&lt;span class="nc"&gt;.flex-item&lt;/span&gt; &lt;span class="p"&gt;{&lt;/span&gt;&lt;span class="c"&gt;/*properties here*/&lt;/span&gt;&lt;span class="p"&gt;}&lt;/span&gt;

&lt;span class="nc"&gt;.box-3&lt;/span&gt; &lt;span class="p"&gt;{&lt;/span&gt;
&lt;span class="nl"&gt;flex-basis&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;&lt;span class="m"&gt;200px&lt;/span&gt;&lt;span class="p"&gt;}&lt;/span&gt;
&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%2F8bvgic4lt92zr1f46914.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%2F8bvgic4lt92zr1f46914.png" alt="Image description" width="800" height="129"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;h2&gt;
  
  
  Align self
&lt;/h2&gt;

&lt;p&gt;This property allows an individual flex item to override the alignment specified by the flex container's align-items property. It takes values such as flex-start, flex-end, center, baseline, or stretch.&lt;br&gt;
&lt;/p&gt;

&lt;pre class="highlight css"&gt;&lt;code&gt;&lt;span class="nc"&gt;.flex-item&lt;/span&gt; &lt;span class="p"&gt;{&lt;/span&gt;
    &lt;span class="nl"&gt;color&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="m"&gt;#2b0606&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;
    &lt;span class="nl"&gt;font-size&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="m"&gt;2rem&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;
    &lt;span class="nl"&gt;padding&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="m"&gt;2rem&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;
    &lt;span class="nl"&gt;text-align&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="nb"&gt;center&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;
    &lt;span class="nl"&gt;font-weight&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="nb"&gt;bold&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;
    &lt;span class="nl"&gt;flex-grow&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="m"&gt;1&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;
&lt;span class="p"&gt;}&lt;/span&gt;
&lt;span class="nc"&gt;.box-1&lt;/span&gt; &lt;span class="p"&gt;{&lt;/span&gt;
    &lt;span class="nl"&gt;background-color&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="no"&gt;greenyellow&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;
    &lt;span class="nl"&gt;order&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="m"&gt;1&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;
&lt;span class="p"&gt;}&lt;/span&gt;
&lt;span class="nc"&gt;.box-2&lt;/span&gt; &lt;span class="p"&gt;{&lt;/span&gt;
    &lt;span class="nl"&gt;background-color&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="no"&gt;blueviolet&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;
    &lt;span class="nl"&gt;align-self&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="n"&gt;flex-start&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;
&lt;span class="p"&gt;}&lt;/span&gt;
&lt;span class="nc"&gt;.box-3&lt;/span&gt; &lt;span class="p"&gt;{&lt;/span&gt;
    &lt;span class="nl"&gt;background-color&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="n"&gt;grey&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;
&lt;span class="p"&gt;}&lt;/span&gt;
&lt;span class="nc"&gt;.box-4&lt;/span&gt; &lt;span class="p"&gt;{&lt;/span&gt;
    &lt;span class="nl"&gt;background-color&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="n"&gt;codetblue&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;
    &lt;span class="nl"&gt;align-self&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="n"&gt;flex-end&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;
&lt;span class="p"&gt;}&lt;/span&gt;
&lt;span class="nc"&gt;.box-5&lt;/span&gt; &lt;span class="p"&gt;{&lt;/span&gt;
    &lt;span class="nl"&gt;background-color&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="no"&gt;chocolate&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;
&lt;span class="p"&gt;}&lt;/span&gt;
&lt;span class="nc"&gt;.box-6&lt;/span&gt; &lt;span class="p"&gt;{&lt;/span&gt;
    &lt;span class="nl"&gt;background-color&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="no"&gt;goldenrod&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;
    &lt;span class="nl"&gt;align-self&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="n"&gt;flex-center&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;
&lt;span class="p"&gt;}&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;



&lt;ul&gt;
&lt;li&gt;&lt;p&gt;&lt;code&gt;align-self: flex-start&lt;/code&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%2Fu7njr4brocext120vehg.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%2Fu7njr4brocext120vehg.png" alt="Image description" width="800" height="172"&gt;&lt;/a&gt;&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;&lt;code&gt;align-self: flex-end&lt;/code&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%2Fy2ymocxbg958asdwt1k5.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%2Fy2ymocxbg958asdwt1k5.png" alt="Image description" width="800" height="184"&gt;&lt;/a&gt;&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;&lt;code&gt;align-self: flex-center&lt;/code&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%2Fwxgx8xcw4gleancgs5ti.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%2Fwxgx8xcw4gleancgs5ti.png" alt="Image description" width="800" height="174"&gt;&lt;/a&gt;&lt;/p&gt;&lt;/li&gt;
&lt;/ul&gt;

&lt;h2&gt;
  
  
  Flex
&lt;/h2&gt;

&lt;p&gt;The flex property is a shorthand property that combines the flex-grow, flex-shrink, and flex-basis properties in one declaration. It is commonly used to set the flex properties of flex items.&lt;br&gt;
&lt;/p&gt;

&lt;pre class="highlight css"&gt;&lt;code&gt;&lt;span class="nc"&gt;.flex-container&lt;/span&gt; &lt;span class="p"&gt;{&lt;/span&gt;
    &lt;span class="nl"&gt;display&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="n"&gt;flex&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;
&lt;span class="p"&gt;}&lt;/span&gt;
&lt;span class="nc"&gt;.flex-item&lt;/span&gt; &lt;span class="p"&gt;{&lt;/span&gt;
    &lt;span class="nl"&gt;flex&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="m"&gt;1&lt;/span&gt; &lt;span class="m"&gt;0&lt;/span&gt; &lt;span class="m"&gt;100px&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;
&lt;span class="p"&gt;}&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;



&lt;p&gt;Using the shorthand declaration above is equivalent to the following individual declarations below:&lt;br&gt;
&lt;/p&gt;

&lt;pre class="highlight css"&gt;&lt;code&gt;&lt;span class="nc"&gt;.flex-item&lt;/span&gt; &lt;span class="p"&gt;{&lt;/span&gt;
    &lt;span class="nl"&gt;flex-grow&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="m"&gt;1&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;
    &lt;span class="nl"&gt;flex-shrink&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="m"&gt;0&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;
    &lt;span class="nl"&gt;flex-basis&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="m"&gt;100px&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;
&lt;span class="p"&gt;}&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;



&lt;h2&gt;
  
  
  Conclusion
&lt;/h2&gt;

&lt;p&gt;Understanding the basics of Flexbox is essential for creating modern, responsive web layouts.&lt;/p&gt;

&lt;p&gt;By mastering the concepts of flex containers, flex items, the main and cross axes, and the various Flexbox properties, you will have the skills to design flexible and dynamic web UIs that adapt flawlessly to different devices and screen sizes.&lt;/p&gt;

&lt;p&gt;So, embrace Flexbox and explore its vast possibilities for crafting stunning web interfaces.&lt;/p&gt;


&lt;/li&gt;

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