What are Children Props in React? Complete Guide with Syntax and Examples (2026)

Image
What are Children Props in React? As you build React applications, you'll often create components that share the same layout but display different content. Instead of writing a new component for every small variation, React provides a simple and powerful solution called the  Children  prop. The  Children  prop is a special built-in prop that allows a component to receive and display whatever is placed between its opening and closing tags. This makes components more flexible because the structure stays the same while the content can change every time the component is used. For beginners, you can think of the  Children  prop as the inside content of a container. The container provides the design, while the content inside the container is supplied by the parent component. Understanding Children Props In React, data is usually passed to a component using props such as title,name or price. These values are passed as attributes. For example : <User name...

how to create login forms

 


  

simple  Customer Login Form Using HTML


Customer Login Form

Customer login form

PROGRAM : Customer Login  form :-


                 CODE  THIS PROGRAME 


<html>  
<head>  
<meta name="viewport" content="
width=device-width, initial-scale=1">  
<title> Login Page </title>  
<style>  
Body {  
  font-family: Calibri, Helvetica, sans-serif;  
  background-color: pink ;  
}  

body {
  background-image:url ="https://drive
.google.com/file/d/1RMKNDIdqJSs4PTAZO6p47
VmC_MXWsplC/view?usp=drivesdk" ("background6.jpg");
}

button {  
       background-color: 357Ec7;
       width: 100%;  
        color: black ;  
        padding: 15px;  
        margin: 10px 0px;  
        border: none;  
        cursor: pointer;  
         }  
 form {  
        border: 3px solid #f1f1f1;  
    }  
 input[type=text], input[type=password]
 {  
        width: 100%;  
        margin: 8px 0;  
        padding: 12px 20px;  
        display: inline-block;  
        border: 2px solid   #F660AB;  
        box-sizing: border-box;  
    }  
 button:hover {  
        opacity: 0.7;  
    }  
  .cancelbtn {  
        width: auto;  
        padding: 10px 18px;  
        margin: 10px 5px;  
    }  
       
     
 .container {  
        padding: 25px;  
        background-color: FCDFFF;  
    }  
</style>  
</head>    
<body>    
    <center> <h1> Customer  Login Form </h1>
</center>  
    <form>  
        <div class="container">  
            <label>Username : </label>  
            <input type="text" placeholder=
"Enter Username" name="username" required>
            <label>Password : </label>  
            <input type="password" placeholder=
"Enter Password" name="password" required>
             <button type="submit"> <input
type="submit"
              onclick="check(this.form)"
name="btn_submit"
             value="Login"></button>
            <input type="checkbox"
checked="checked"> Remember me  
            <button type="button"
class="cancelbtn"> Cancel</button>  
            Forgot <a href="#"> password? </a>  
        </div>  
    </form>    
</body>    
<script type="text/javascript">
         var message="Right Click Disabled!";
               function rtclickcheck(keyp)  {
        if (navigator.appName == "Netscape"  &&
                           keyp.which == 3)  {
                              alert(message);
                               return false;
                      }
      if (navigator.appVersion.indexOf("MSIE")
 != -1 && event .button == 2)  {
                               alert(message);
                           return false;
                      }
}
         document.onmousedown = rtclickcheck;
         function check(form)  {
   

if  (form.username.value ==  "admin"
&& form.password.value == "123")  {
       window.open("https:https://
www.tripadvisor.in/Attraction_Review-g12456442
-d2293365-Reviews-Kas_Plateau-Kas_Satara_Distric
t_Maharashtra.html ")
      } else  {
        alert("Username or Password Doesn't
Match!");
   }
}
</script>
</html>

Comments

Popular posts from this blog

HTML Tag

CSS Text Color Explained with Syntax and HTML Examples

HTML Input Type Submit Syntax and Example