Write the syntax to add an image on web page?
Answers
Answered by
2
Images enhance visual appearance of the web pages by making them more interesting and colorful.
The <img> tag is used to insert
images in the HTML documents.
It is an empty element and contains
attributes only. The syntax of the
<img> tag can be given with:
<img src="url" alt="some_text">
The src attribute tells the
browser where to find the image.
Its value is the
URL of the image file.
Whereas, the alt attribute provides an alternative text for the image, if it is unavailable or cannot be displayed for some reason. Its value should be a meaningful substitute for the image.
Answered by
1
Explanation:
Images enhance visual appearance of the web pages by making them more interesting and colorful.
The <img> tag is used to insert
images in the HTML documents.
It is an empty element and contains
attributes only. The syntax of the
<img> tag can be given with:
<img src="url" alt="some_text">
The src attribute tells the
browser where to find the image.
Its value is the
URL of the image file.
Whereas, the alt attribute provides an alternative text for the image, if it is unavailable or cannot be displayed for some reason. Its value should be a meaningful substitute for the image.
\huge \colorbox{yellow}{mark as brainliest }
Similar questions