What is the img element?

Asked By 30 points N/A Posted on -
qa-featured

Hello,

What is the img element?

How does it work?

Where does it use?

Please tell me about details. Is img element important to web page?

SHARE
Best Answer by Transmote Pilos
Best Answer
Best Answer
Answered By 0 points N/A #163264

What is the img element?

qa-featured

Hello,

Img element is very Important to add an image in the web page.

For adding image that tag is <img>.

Example: <img src=”images/photo.png”>.

To add width and height values.

<img src=”images/photo.png” width=”52” height=”25”>.

To add alternative text?

<img src=”images/photo.png” width=”52” height=”25” alt=”This is a photo of”>.

You can add image by following above code.

Thanks.

Answered By 0 points N/A #163265

What is the img element?

qa-featured

The img element is a html tag that is used to place images on a web page. Below is the simplest way it can be used:

<img src="images/pic1.png"/>

The above is an img tag specifying the source of the image file to be displayed. There are many more attributes such as width, height, name, id etc which can be specified within the tag.

The img tag is of course very important, since images play a very vital role in designing of a webpage.

Answered By 0 points N/A #163266

What is the img element?

qa-featured
Image element or in tag <img> used to insert image in a webpage file.
 
Tag : <img> ….</img>  in XHTML
 
      <img> in HTML
 
example :<img src=”images/images1.jpg”>
 
where src is source or location of image.
 
You can put size in <img> tag
 
example :<img src=”images/images1.jpg” width="200" height="100">
 
For more details go to: 
 
 
Thank you.
 

Login/Register to Answer

Related Questions