HTML
HTML
Empowerment Technologies
HTML
HTML stands for HyperText Markup Language.
Some HTML tags are not closed, for example br and hr.
1) src
It is a necessary attribute that describes the source or
path of the image. It instructs the browser where to
look for the image on the server.
2) alt
The alt attribute defines an alternate text for the image,
if it can't be displayed. The value of the alt attribute
describe the image in words. The alt attribute is
considered good for SEO prospective.
Attributes of HTML img
tag
3) width
It is an optional attribute which is used to specify the
width to display the image. It is not recommended
now. You should apply CSS in place of width attribute.
4) height
It h3 the height of the image. The HTML height attribute
also supports iframe, image and object elements. It is
not recommended now. You should apply CSS in place
of height attribute.
Attributes of HTML img
tag