Conditional Rendering in React Complete Guide with Examples 2026

Image
  Conditional Rendering in React Conditional Rendering is one of the most useful concepts in React. It means showing different content on the screen depending on a condition. For example: If a user is logged in → show Logout If a user is not logged in → show Login If a student has passed → show Congratulations If a product is available → show Buy Now If data is loading → show Loading... React does not have a separate if rendering tag. Instead, we use normal JavaScript conditions such as if, the ternary operator, &&, and switch to decide what should appear in the UI.

how to create a Footer Page design


footer page


responsive Footer page design using HTML | CSS

Source Code :-

HTML ,CSS Source code:- 

<!DOCTYPE html>
<html>
<head>
<meta name="viewport" content
="width=device-width, initial-scale=1">
<meta charset="utf-8">
  <meta name="viewport"
content="width=device-width, initial-scale=1">
  <link rel="stylesheet" href="css/style.css">
  <link rel="stylesheet" type="text/css" href=
"https://cdnjs.cloudflare.com/ajax/libs/
font-awesome/5.15.1/css/all.min.css">
<style>


<!--   footer  css code start  -->
@import url('https://
fonts.googleapis.com/css2?family=Poppins:
wght@300;400;500;600;700&display=swap');
body{
    line-height: 1;
    font-family: 'Poppins', sans-serif;
}
*{
    margin:0;
    padding:0;
    box-sizing: border-box;
}
.container{
    max-width: 1180px;
    margin:auto;
}
.row{
    display: flex;
    flex-wrap: wrap;
}
ul{
    list-style: none;
}
.footer{
    background-color: #24262b;
    padding: 50px 0;
}
.footer-col{
   width: 20%;
   padding: 0 10px;
}
.footer-col h4{
    font-size: 19px;
    color: #ffffff;
    text-transform: capitalize;
    margin-bottom: 35px;
    font-weight: 200;
    position: relative;
}
.footer-col h4::before{
    content: '';
    position: absolute;
    left:0;
    bottom: -10px;
    background-color: #e91e63;
    height: 1px;
    box-sizing: border-box;
    width: 40px;
}
.footer-col ul li:not(:last-child){
    margin-bottom: 10px;
}
.footer-col ul li a{
    font-size: 16px;
    text-transform: capitalize;
    color: #ffffff;
    text-decoration: none;
    font-weight: 200;
    color: #bbbbbb;
    display: block;
    transition: all 0.3s ease;
}
.footer-col ul li a:hover{
    color: #ffffff;
    padding-left: 8px;
}
.footer-col .social-links a{
    display: inline-block;
    height: 35px;
    width: 19px;
    background-color: rgba(255,255,255,0.2);
    margin:0 11px 11px 0;
    text-align: center;
    line-height: 40px;
    border-radius: 50%;
    color: #ffffff;
    transition: all 0.5s ease;
}
.footer-col .social-links a:hover{
    color: #24262b;
    background-color: #ffffff;
}

/*responsive*/
@media(max-width: 727px){
  .footer-col{
    width: 50%;
    margin-bottom: 20px;
}


}
@media(max-width: 554px){
  .footer-col{
    width: 100%;
}
}


<!--   footer css code start  -->
</style>

<body>



<!--   footer  code start  -->
<footer class="footer">
     <div class="container">
        <div class="row">
            <div class="footer-col">
                <h4>Quick Link</h4>
                <ul>
         


<li><a href="home.php">Home</a></li> <!-- link page
         
  <li><a href="about.php">About</a></li>
    <li><a href="product.php">Product</a></li>
<li><a href="contactus.php">Contact Us</a></li>
   <li><a href="register.php">Register</a></li>
                </ul>
            </div>
            <div class="footer-col">
                <h4>get help</h4>
                <ul>
         <li><a href="#">FAQ</a></li>
        <li><a href="#">shipping</a></li>
              <li><a href="#">returns</a></li>
        <li><a href="#">order status</a></li>
    <li><a href="#">payment options</a></li>
                </ul>
            </div>
            <div class="footer-col">
                <h4>online shop</h4>
                <ul>
  <li><a href="Dress.php">watch Dress</a></li>
 <li><a href="dress.php">Anarkali Suit</a></li>
<li><a href="dress.php">Sharara Suit</a></li>
  <li><a href="dress.php">Ghagra Dress</a></li>
                </ul>
            </div>

               <div class="footer-col">
                <h4>follow us</h4>
                 <div class="social-links">
<a href="#"><i class="fab fa-facebook-f"></i>
</a>
  <a href="#"><i class="fab fa-twitter"></i></a>
  <a href="#"><i class="fab fa-instagram">
</i></a>
    <a href="#"><i class="fab fa-linkedin-in">
</i></a>
                </div>
            </div>

            <div class="footer-col">
                <h4> Location</h4>
                <div class="">
                <a href="""> location</a>
                   
                </div>
            </div>
           
     </div> <br>
       <div class="main">  
            <center><h6 style="color:white;">
Copyright@2024,Developed By company
name Student Aishwarya .</h6>
         </center></div>
  </footer>
<!--   footer  code end  -->

           
</div>
</body>
</html>


Responsive Footer page design using HTML | CSS

Output :- 

footer page


Related Post :-

Comments

Popular posts from this blog

HTML Tag

CSS Text Color Explained with Syntax and HTML Examples

HTML Input Type Submit Syntax and Example