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 define styles
B. To specify accessibility information
C. To store private data for use in scripts
D. To link to external resources
Answer: Option C
Solution (By JKSSB Mock Tests)
Custom data attributes (data-*) allow developers to store extra information on HTML elements that can be used by JavaScript.

Discuss this Question (0)

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

Practice More Internet and Web Technologies Questions

Question #1
Which of the following parameters represents an accurate description of the web architecture concept called 'Content Management System' (CMS)?
A. A physical computer motherboard processing chip specification
B. A software application platform that allows users to create, modify, collaborate on, and manage digital content on a website without requiring advanced technical coding skills
C. A specialized local browser button designed to clear cache history
D. An unlinked text configuration archive stored on local devices

Correct Answer: Option B


Explanation:
A CMS (like WordPress or Drupal) abstracts web development complexity by providing templates, visual editors, and databases to publish content over the web easily.

This question belongs to: Computer Internet and Web Technologies
Question #2
Which search engine is developed by Microsoft?
A. DuckDuckGo
B. Google
C. Yahoo
D. Bing

Correct Answer: Option D


Explanation:
Bing is a search engine developed and operated by Microsoft, launched in 2009.

This question belongs to: Computer Internet and Web Technologies
Question #3
Which of the following is a protocol used for managing network devices?
A. SMTP
B. FTP
C. HTTP
D. SNMP

Correct Answer: Option D


Explanation:
SNMP (Simple Network Management Protocol) is used for monitoring and managing network devices.

This question belongs to: Computer Internet and Web Technologies