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...

css text property

text properties in css

      

Text properties in css

1] This css property allows us to change the case of the text.

2] used to control the text capitalization.

3] css property can be used to make the appearance of next 

  all-lowercase and ,all uppercase can first character each word uppercase.

Text properties 

1] text-transform : uppercase;

2] text-transform : lowercase;

3] text-transform : capitalize;

1) text-transform : uppercase;

   Transforms all characters to uppercase.

Example :- 

<!DOCTYPE html>
<html>
<head>
   
      <title>css text-transform property</title>
      <style>
             p
             {
                  text-transform:uppercase;
             }

      </style>
</head>
<body>
      <h1>Learn Programming Language</h1>

      <p>Learn to the this website https://webdesigningtheory.blogspot.com/
</p>
     
</body>
</html>

Output :-

text-transform: uppercase / output



2)  Text-transform : lowercase;

 Transforms all characters to lowercase.

Example:-

<!DOCTYPE html>
<html>
<head>
   
      <title>css text-transform property</title>
      <style>
             p
             {
                  text-transform:lowercase;
             }

      </style>
</head>
<body>
      <h1>Learn Programming Language</h1>

      <p><b>Learn to the this website https://webdesigningtheory.blogspot.
com/</b></p>
     
</body>
</html>

Output :-
text-transform lowercase/output

3) Text-transform : capitalize;

       Transforms  to the first character of each the word to uppercase and 

transforms all other characters to lowercase.

Example :-

<!DOCTYPE html>
<html>
<head>
   
      <title>css text-transform property</title>
      <style>
             p
             {
                  text-transform:capitalize;
             }

      </style>
</head>
<body>
      <h1>Learn Programming Language</h1>

      <p><b>Learn to the this website https://webdesigningtheory.blogspot.
com/</b></p>
     
</body>
</html>

Output :-

text-transform capitalize /output




Related Post :-

how to create home page design

php program to print hollow pyramid star pattern

css box padding property

Comments

Popular posts from this blog

HTML Tag

CSS Text Color Explained with Syntax and HTML Examples

HTML Input Type Submit Syntax and Example