React Component Nesting and Reusability Explained – A Beginner's Guide 2026

Image
1. Introduction to React Component Nesting and Reusability React JS is a popular JavaScript library used to create interactive and user-friendly web applications. One of the most useful concepts in React development is component-based architecture. Instead of writing an entire website inside one large file, developers divide the user interface into smaller and manageable parts called components. Two important concepts in this approach are component nesting and component reusability. Component nesting means placing one React component inside another component to build a complete user interface. For example, a website page may contain a header, navigation bar, sidebar, content section, and footer. Each section can be developed as a separate component and combined inside a main component. Component reusability means creating a component once and using it multiple times in different parts of an application. For example, the same button, product card, or navigation menu can be reused withou...

html q tag and html sup tag


                                                              HTML Tag

 


HTML - Drawing Line 

The HTML<hr> tag is use for creating a horizontal line. This is also called Horizontal Rule in the HTML <hr> tag also supports following additional attributes use horizontal line.

Attribute 

1)  Align  :-   left, right, centre

Description  :- Align Attribute It specifies to the alignment  horizontal line.

2)  No shade  

 No shade It Removes the usual shading effect most browsers display

 3)  Size

size attribute It Specifies the height  the horizontal line. 

4) Width

width Attribute It Specifies the width of the horizontal. 

HTML - Drawing Line 
Example 

<!DOCTYPE html>

<html>

<body>

<p>Horizontal Ruler <hr></p>

<p>Horizontal Ruler <hr></p> 

<p>Horizontal Ruler chr></p>

</body> 

</html>

Drawing Line  output

Horizontal Ruler

___________________________________ 

Horizontal Ruler

___________________________________

Horizontal Ruler

___________________________________

2) Quote Element 

Quote Element is the <q> tag defines a short quotation. Browsers normally insert quotation marks around the quotations.

Attribute

1)  Cite  :-  URL

Specifies the source URL of the quote

 Quote Element 

Example 

<! Doctype html>

<html>
<body>
<p>wwF's goal is to:
<q>.http://webdesigningtheory.blogspot.com/</q>
 they succeed.</p>
</Body>
</html>

Quote Element  output


wwF's goal is to: "http://webdesigningtheory.blogspot.com/ " they succeed.

3)Subscript Element 

Subscript Element is the <sub> tag defines subscript text. Subscript text appears half  character below tnormal line, and  sometimes rendered in a smaller font. Subscript text it can be use for chemical formulas, H2O.The <sub> tag is used to add a subscript text is the HTML document. The <sub> tag defines the subscript text. Subscript text is the appears half of character below the normal line and is sometimes rendered to a smaller font.

Example

<!DOCTYPE  htal>

<html>

<body>

<P>This text contains
<Sub>subscript</sub>text.</p>
<p>This text contains<sup>superscript</sub>text.</p></Body>

</html>

Subscript Element output

This text contains subscribe text.

This text contains subscribe text.

 

4)Big Element

HTML Big Element (<big>) makes to  the test font size one size bigger for example, from small to medium, from large to x- large up to the browser maximum font size.

Example

<! Doctype html>

<html>

<body>

<p>This text is normal.</p>

<P><big>This text is bigger. </Big></p> 

<P><strong>Note: </strong> big element  not supported to HTML5. </P>

</Body>

</html>

Big Element output

This text is normal.

This text is bigger.

Note :  big element  not supported to  html 5.


5) Small Element 

The HTML Small Element <small> makes  the text font size on size smaller  example from large to medium  from small to x-small  down  the browser minimum font size. In HTML5, in this element is repurposed to represent side-comments and small print, including copyright and legal text.

Small Element  Example

<!DOCTYPE html>

<html>

<body>

<P>pssmovement - the world's largest free Meditation training movement.</p>

 <P><small>No Copyright . . .  Please spread the message . . .  visit: www.google.com   </small></p>

</body> 

</html>

Small Element 

output

 pssmovement - the world's largest free Meditation training movement

No Copyright . . . Please spread the message . . . visit: www.google.com

Related Post

html tag

html form

html table attribute

Comments

Popular posts from this blog

CSS Text Color Explained with Syntax and HTML Examples

CSS Outline Offset Property with Practical Examples

Learn CSS text-decoration-color Property in Simple Words with Examples