HTML Image

HTML Image

HTML Image

HTML Images helps to make beautiful websites which attract the visitors.

Example:
<img src="../../favicon.png">
Run Code »

Run the code to see the effect.


HTML Alt Attribute

There may be several reasons when the image is not displayed on the webpage

It also helps blind persons to read web page because screen reader only read the text.

Example:
<img alt="Logo of Poori Padhai" src="../../favicon.pnx">
Run Code »
Example Explanation:

In the above, we have shown an example of HTML Image Alt Attribute.


HTML Width and Height Attribute

The width and height attribute used to re-size an image.

Example:
<img width="40" height="50" src="../../favicon.png">
Run Code »
Example Explanation:

In the above, we have shown an example of HTML Width and Height Attribute.

  • width="40" make the size of the image 40px and height="50" make the size of the image 50px.

Run the code to see the effect.


HTML Image in Hindi

Best Use:360p or more (480p or 720p)