IMAGE::
It is defined with <img> tag.
<img> tag doesnot have a closing tag.
For example::
<body>
<img src="love.gif" alt="pyar" height=300 width=200>
</body>
We can use the style attribute to specify the width and height of an image.
Note:: The alt attribute provides alternative information for an image.
The main reason of an alternate attribute is if a user cannot view the image for some reason
Like:: (connection working slowly, source attribute error etc.) Then user can understand that the image is related to this name which is given in alt attribute.
Image is in another folder::
If our image save is in other folder then we will use the folder name of the image first..
For example::
<img src="/images/love.gif" alt="pyar" height=300 width=200>
Because browser expect to find the image in the same folder where we have a web page.
It is common we store our images in subfolder but that time we provide the folder name of an image in above example.
Note:: The syntax of animated images is same or not different to non-animated images.
It is defined with <img> tag.
<img> tag doesnot have a closing tag.
For example::
<body>
<img src="love.gif" alt="pyar" height=300 width=200>
</body>
We can use the style attribute to specify the width and height of an image.
Note:: The alt attribute provides alternative information for an image.
The main reason of an alternate attribute is if a user cannot view the image for some reason
Like:: (connection working slowly, source attribute error etc.) Then user can understand that the image is related to this name which is given in alt attribute.
Image is in another folder::
If our image save is in other folder then we will use the folder name of the image first..
For example::
<img src="/images/love.gif" alt="pyar" height=300 width=200>
Because browser expect to find the image in the same folder where we have a web page.
It is common we store our images in subfolder but that time we provide the folder name of an image in above example.
Note:: The syntax of animated images is same or not different to non-animated images.