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 div tag

Body Tag



1] html - Font face, Size & Colour 

 <font> tag is the  use to change the format of the text on  web page. The HTML <Font> tag  supports following  tag additional .Font face and color depends entirely  the computer and browser that is the  being used to view your page  you can use HTML <font> tag to add style, size, and color to  text on your website. You can be use a <font> tag to set all of your text to same size, face, and color.


Color 

Attribute 

Value  - rgb(x,x,x) Colorname

Description 

 color tag Specifies the color of text. Either the color name  the six character color code may be to the  used to specify color


HTML FONT Program

font tag this is a face attribute allows the author to define one Roman", or more different font to be displayed the browser will display  first font specified but if that  not present on the computer the browser will try the next one of  the list .


font Value tag use  example of the font   font_family or "Times New "Verdana", and "Helvetica."

font size  display It Specifies the size of text. This can be absolute (0.. 6), or relative ("+1", "+2","+3",... or "-1", "-2", "_3" ...) 


HTML FONT Program

<!DOCTYPE html>
<html>
<body>
<p><font size="3" color="red">This is some text! </font></p>
<p><font size="2" color="blue">This is some text ! </font></p> <p><font face="verdana" color="green">This is some text!</font></p>
<p><strong>Note:</strong> The font element is not supported in HTML5. Use CSS instead.</p>
</body>
 </html>

HTML FONT Program

Explain Program



HTML FONT Program

OUTPUT IN FONT FACE SIZE & COLOUR

This is some text!

This is some text !

This is some text!

Note: The font element is not supported in HTML5. Use CSS instead.H


2] Html Div tag 

The <div> tag define is the  division or  section in  HTML document The <div> element is often used as  container for other HTML elements to style them with CSS and  perform certain tasks with JavaScript.

The <div> element is very often used together with CSS, to layout a web page. 


<!DOCTYPE html>

 <html>
 <p>This is some text.</p>
 <div style="background-color:lightblue"> 
 <h3>This is a heading in a div element</h3>
 <p>This is some text in a div element.</p>
</div>
 <p>This is some text.</p>
 </body>

</html>


OUTPUT IN DIV TAG

This is some text.

This is a heading in a div element

This is some text in a div element.

This is some text.

Related Post

css position property

css table property

css menu design


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