React Project Folder Structure Explained: Complete Beginner's Guide (2026)

Image
  React Project Folder Structure: Complete Guide with Examples 1. Introduction When you create your first React application, you will notice that it contains several folders and files. At first, understanding their purpose can be confusing, especially for students who are new to frontend development. However, learning the React project folder structure is an important step in becoming a React developer. A React project is organized into different folders to keep source code, images, stylesheets, configuration files and installed packages separate. Every file has a particular purpose, and knowing where to write your code makes development easier. In this tutorial, we will understand the React project folder structure created using Vite. You will learn about important folders such as src , public and node_modules , along with files like App.jsx , main.jsx, package.json and index.html. We will also create our own folders and components with practical code examples. This g...

how to use the image tag in html with example

how to use the img tag in html 

how to use the image tag in html with example



HTML Image Tag 

✷ <img> tag is use to embed images into web pages. images play an important role in web design. 

✷ HTML  <img> tag is use embed images webpage. 

✷<img> tag is empty or self-closing tag.

✷ image are essential web development as they enhance the visual appeal.


   <img>     image tag 
 
     src          source (path or URL) of the image.
     
     alt           Alternate text 


   <img>     tag is self-closing tag  no need to closing </img>

Syntax

                    <Img src = "Url">

HTML Image Tag 

Attribute


1) Align   :-.   Top bottom middle left right

Not supported in HTML5  Specifies the alignment of an image according to surrounding element.

2) Alt    :-  Text 

Specifies an alternate text for an image.

3) border    :-  Pixels

Specifies the width of the border around an image.

4) height   :-  Pixels

Specifies the height of an image.

5) width  :-  Pixels 

Specifies the width of an Image.

6) Src  :-   pixels

specifies the URL of an image.

HTML Image Tag 
Example


<!Doctype html>

<html>

<Body bgcolor ="blue"  text="yellow" link="red" >

<center><h1>photo Art Gallery </h1></center>

<img src="1.jpg" height="100" width="100" align ="left">

<img src="2.jpg" height="100" width="100"align="center" alt ="middle image">

</body>

</html>

HTML Image Tag 
Explain Program

Step 1 ]

<!Doctype html>

  • <!doctype html>  always be the first line of any HTML document.

Step 2 ]

   <html> and </html>

   html  is the root element.

Step 3 ]

<body> and </body>

body  is  main content area.

All visible content inside to  the <body> tag

Step 4]

<body bgcolor  = "blue"  text="yellow"  link="red">

 bgcolor   =  "blue"  background color  page to blue
 text         =  "yellow"  sets text on the page yellow
 link        =  "red"  color of hyperlinks to red

Step 5]

<center><h1>photo Art Gallery </h1></center>

displays a large heading(<h1>) the text . use photo gallery.

<center> tag centers heading .

Step 6]

<img src =" 1.jpg"  height ="100"  width ="100"  align ="left">

Displays image

 file name : 1.jpg
 height    : 100 pixels
 width     : 100 pixels
 align     : left side 

Step 7]

<img src = "2.jpg"  height  = "100"   width  = "100"  align = "center"  alt = "middle image">

file name: 2.jpg

Height  :100
width : 100
align : center 
alt   : middle image


HTML Image Tag output


how to use the image tag in html with example

                                                         how to use the image tag in html with example


Read More :

Form input type in html

HTML description list

html unordered list


Comments

Popular posts from this blog

HTML Tag

CSS Text Color Explained with Syntax and HTML Examples

CSS Outline Offset Property with Practical Examples