MCQ Single Best Answer Easy

QWhich element has a src property that is used to initiate an HTTP GET request?

ID: #5217 Javascript Scripted HTTP MCQ 161 views
Question Info
#5217Q ID
EasyDifficulty
Javascript Scripted HTTP MCQTopic

Choose the Best Option

Click any option to instantly check if you're correct.

  • A script
  • B iframe
  • C img
  • D both img and script
Correct Answer: Option D

Explanation

The src property is present in both img and script and can be used to initiate an HTTP GET request.
The src property sets or returns the value of an image's src attribute.
The required src attribute specifies an image's URL.

Share This Question

Challenge a friend or share with your study group.