ADDING AN IMAGE TO A HTML PAGE.

ADD AN IMAGE TO HTML

In html we can add as many as images we want it is pretty simple to add image to a html page
there are few easy important steps that we must follow

syntax of adding an image 

  • At first we must know about image tag , image tag is the tag through which we can insert an image
  • image tag consists of few parameters those are img src, width, height and etc.

  • img src=  means "image source" the source from where an image has to be loaded .
  • width = it specifies the width of an image. 
  • height = as its name it specifies the height of an image.

EXAMPLES 

       CODE


OUTPUT

There is one important note image should be saved in the folder where all the html text files are stored and as much as we can use the images there is no any kind of restrictions.

Comments

Popular posts from this blog

PROG9

ADDING TABLE IN HTML

PROG8