What is <img> tag and how is it used?
Experience Level: Junior
Tags: HTML
Answer
The <img>
tag defines an image in an HTML page.
It has a two required attributes: src
and alt
.
src
- is use for the URL of image
alt
- is alternative text
- use for when image can not be loaded on web page
Related HTML job interview questions
Can you give 10 examples of the most used attributes?
HTML JuniorWhat is <a> tag and how is it used?
HTML JuniorWhat is a <form> tag?
HTML JuniorWhat is a <pre> tag?
HTML JuniorWhat is a <code> tag?
HTML Junior
Chat
Oh, the operator is not available. Leave us your comments. We will answer all your questions as soon as possible.
Anonymous
Καλησπέρα.
Καλησπέρα.
Anonymous
the infinteis -3/15 so 1triition / infinet
the infinteis -3/15 so 1triition / infinet
Anonymous
e
e
Anonymous
<a href="https://inspirum.pl "
<a href="https://inspirum.pl "
Anonymous
[url]https://inspirum.pl[/url]
[url]https://inspirum.pl[/url]
LaceJaguar65
e
e
LaceJaguar65
e
e
LaceJaguar65
e
e
LaceJaguar65
e
e
LaceJaguar65
e
e
LaceJaguar65
e
e
LaceJaguar65
e
e
LaceJaguar65
e
e
LaceJaguar65
e
e
LaceJaguar65
e
e
LaceJaguar65
e
e
LaceJaguar65
e
e
LaceJaguar65
e
e
LaceJaguar65
e
e
LaceJaguar65
e
e
LaceJaguar65
e
e
LaceJaguar65
e
e
LaceJaguar65
e
e
LaceJaguar65
e
e
LaceJaguar65
e
e