CameraIcon
CameraIcon
SearchIcon
MyQuestionIcon
MyQuestionIcon
1
You visited us 1 times! Enjoying our articles? Unlock Full Access!
Question

HTML code for image file is ____________.

A
<IMG SRC="URL">
Right on! Give the BNAT exam to get a 100% scholarship for BYJUS courses
B
<IMG SRC=URL>
No worries! We‘ve got your back. Try BYJU‘S free classes today!
C
<IMG SRC>=<URL>
No worries! We‘ve got your back. Try BYJU‘S free classes today!
D
<IMG SRC>=<"URL">
No worries! We‘ve got your back. Try BYJU‘S free classes today!
Open in App
Solution

The correct option is A <IMG SRC="URL">

HTML code for image file is <IMG SRC="URL">.

Hypertext markup language is the standard markup language for creating web pages and web applications. With cascading style sheets and javascript, it forms a triad of cornerstone technologies for the World Wide Web.

The <img> tag defines an image in an HTML page. The <img> tag has two required attributes: src and alt. Images are not technically inserted into an HTML page; images are linked to HTML pages. The <img> tag creates a holding space for the referenced image.

The <img> tag is an empty tag, which means that, it can contain only list of attributes and it has no closing tag. The source attribute (src) is what makes an image tag display an image. An image source is a URL value and should point to the directory location of an image file.


flag
Suggest Corrections
thumbs-up
0
Join BYJU'S Learning Program
similar_icon
Related Videos
thumbnail
lock
The Digital Era
HISTORY
Watch in App
Join BYJU'S Learning Program
CrossIcon