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

html ordered list


 HTML List 

html list /output




HTML List :-

Different Type  HTML list.

                   1] Ordered HTML  List.
                  2] Unordered HTML List 
                  3] Description  HTML List



1] Ordered HTML List :-

Q. what is the ordered list in html?

  •      Ordered list is also known as  Number list or alphabetical.
  •     All ordered html list items are marked with the Number in by default.
  •     Ordered list Starts <ol> tag and closing with the </ol> tag.
  •     Ordered list each  item start with <li> tag and closing with the items </li> tag. 

   Ordered list  represent different Type

 1)  Numeric Number(1,2,3,4,5)

 2) Capital Roman Number (l ,ll , lll , lV)

 3) Small Roman Number( i, ii, iii, iv)

 4) Capital Alphabet (A,B,C, D)

 5) Small Alphabet (a, b, c, d)

Q. How to make ordered list in html.

Ordered HTML List :-

1) Numeric Number -

Ordered html list is numeric number is default type.
Numeric Number  is not defining type ="1"
.

 Example -

<!doctype html>
<html>
 body>
<h2>Ordered HTML List</h2>  
    <ol>
        <li>HTML</li>
        <li>CSS</li>
         <li>JAVASCRIPT</li>
    </ol>    
</body>
</html>


Output

ordered html list/output







2) Capital Roman Number (l ,ll , lll , lV) :-

Capital Roman Number  display list in roman number uppercase.

Capital Roman Number is  defining type ="I" .

Syntax :-

Ol type="I"

Example -

<!doctype html>
<html>
 body>
<h2>Ordered HTML List</h2>  

   <ol type ="I">
        <li>HTML</li>
        <li>CSS</li>
         <li>JAVASCRIPT</li>
    </ol>    
</body>
</html>



 Capital Roman Number  OUTPUT :-

Capital Roman Number/output







 3) Small Roman Number( i, ii, iii, iv) :-

Small Roman Number display list in roman number lowercase.
Small Roman Number is defining type ="i" 

Syntax :-

Ol  type = "i"

Example -

<html>
<body>
<h2>Ordered HTML List</h2>
 
    <ol type ="i">
        <li>HTML</li>
        <li>CSS</li>
         <li>JAVASCRIPT</li>
    </ol>  
</body>
</html>

 OUTPUT :-

lowercase html list /output






4)Capital Alphabet (A,B,C, D) :-

Capital Alphabet display list in Uppercase.
Capital Alphabet  is defining type ="A" 

Syntax :-

Ol  type = "A"

Example -

<html>
<body>
<h2>Ordered HTML List</h2>
<h3>Capital Alphabet </h3> 
    <ol type ="A">
        <li>HTML</li>
        <li>CSS</li>
         <li>JAVASCRIPT</li>
    </ol>
</body>  
 </html>

OUTPUT

capital alphabet list html/output

 5) Small Alphabet (a, b, c, d) :-


Small Alphabet display list in lowercase.

Small Alphabet is defining type ="a" 

Syntax :-

Ol  type = "a"

Example -

<html>
<body>
<h2>Ordered HTML List</h2>
    <h3>Small Alphabet </h3>
        <ol type ="a">
<!-- ordered html list syntax -->
            <li>HTML</li><!-- list tag -->
            <li>CSS</li>
             <li>JAVASCRIPT</li>
        </ol>
</html>
</body>

OUTPUT :-

output small alphabet /output








related Post :-

javascript logical operator

how to create a navigation bar

php program to print increasing triangle

Comments

Popular posts from this blog

HTML Tag

CSS Text Color Explained with Syntax and HTML Examples

HTML Input Type Submit Syntax and Example