What does the 'src' attribute define in an HTML img tag? MCQ with Answer and Explanation

What does the 'src' attribute define in an HTML img tag?
A. The image height
B. The alternative text
C. The source URL of the image
D. The image width
Answer: Option C
Solution (By JKExamLibrary)
The 'src' (source) attribute specifies the URL of the image file to be displayed.

This question belongs to: Computer Internet and Web Technologies

Discuss this Question (0)

No comments yet. Be the first to start the discussion!

Practice More Internet and Web Technologies Questions

Question #1 Report Error
Which of the following is used to encrypt data transmitted over HTTPS?
A. WPA
B. SSL/TLS
C. SSH
D. IPSec

Correct Answer: Option B


Explanation:
HTTPS uses SSL (Secure Sockets Layer) or its successor TLS (Transport Layer Security) to encrypt data between the client and server.

This question belongs to: Computer Internet and Web Technologies
Question #2 Report Error
Which of the following parameters represents an accurate description of the web development concept called 'Single Sign-On' (SSO)?
A. An authentication mechanism that allows a user to log in once and gain secure access to multiple independent web applications or services without re-entering credentials
B. A specialized local browser link designed to clear cache blocks
C. An unlinked text documentation archive stored on local devices
D. A physical computer motherboard processing chip specification

Correct Answer: Option A


Explanation:
SSO authenticates a user once across a centralized identity provider, passing secure tokens to connected web systems to streamline access and eliminate login fatigue.

This question belongs to: Computer Internet and Web Technologies
Question #3 Report Error
What is the function of the 'User-Agent' string sent inside an HTTP request header to a remote web server?
A. To check local hardware device temperature metrics
B. To specify the physical routing coordinates of the local ISP link
C. To identify the specific browser application, version, and operating system of the client to the server
D. To transmit the user's encrypted master system password

Correct Answer: Option C


Explanation:
The User-Agent header string acts as a technical badge, telling the web server what browser software and operating system the client is using so it can tailor content compatibility.

This question belongs to: Computer Internet and Web Technologies