How to add Image tag in HTML?
There are three important tags which are use to add and format the image in
HTML.These are as below:-
- <FIGURE> tag
- <IMG> tag
- <FIGCAPTION> tag
<img> tag is used to add the picture in our website.Syntax of img tag is given
below:-
Syntax
<img src="abc.jpeg" />
When we add more then one picture in a page,then it is good practice to encapsulate
the all <img> tag in another tag called <figure> tag.
Syntax
<figure>
<img src="image1.png" />
<img src="image2.png" />
</figure>
If you want to add the caption to the image,you just want to add the <caption> tag.
syntax of caption tag is given below:-
Syntax
<img src="xyz.jpeg" />
<figcaption>your name</figcaption>
0 comments:
Post a Comment