What is the purpose of the 'data-' prefix in HTML5 custom attributes? MCQ with Answer and Explanation

What is the purpose of the 'data-' prefix in HTML5 custom attributes?
A. To link to external resources
B. To store private data for use in scripts
C. To define styles
D. To specify accessibility information
Answer: Option B
Solution (By JKExamLibrary)
Custom data attributes (data-*) allow developers to store extra information on HTML elements that can be used by JavaScript.

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 parameters indicates an accurate description of the 'Dark Web' ecosystem segment?
A. A subset of the deep web that is intentionally hidden, requiring specific specialized software like Tor to access, often prioritizing encrypted anonymity
B. An unencrypted index list of global email inbox destinations
C. A local network setup configured inside municipal administrative hubs
D. Websites that operate exclusively during nighttime hours globally

Correct Answer: Option A


Explanation:
The Dark Web relies on overlay networks and darknets that require custom software tools (such as Tor) to navigate, providing deep anonymity for both site hosts and visitors.

This question belongs to: Computer Internet and Web Technologies
Question #2 Report Error
What technology is primarily used to build structures and arrange textual information on a webpage?
A. SQL
B. JavaScript
C. HTML
D. CSS

Correct Answer: Option C


Explanation:
HTML (Hypertext Markup Language) is the baseline markup framework used to define the core structural layout of web content.

This question belongs to: Computer Internet and Web Technologies
Question #3 Report Error
Which network utility allows a user to trace the specific real-time hop-by-hop path and transit delays of packets moving across routers from source to destination on the internet?
A. Traceroute (or tracert)
B. Netstat command utility
C. Ping utility loop
D. Ipconfig / Ifconfig

Correct Answer: Option A


Explanation:
Traceroute maps out and records the explicit path of network routers that data packets cross to reach a target destination, displaying transit times for each hop.

This question belongs to: Computer Internet and Web Technologies