Problem Statement
Which attribute is used to specify a unique identifier for an HTML element?
Explanation
The id attribute uniquely identifies an element, which is useful for styling and scripting.
Get the Preplance app for a seamless learning experience. Practice offline, get daily streaks, and stay ahead with real-time interview updates.
Get it on
Google Play
4.9/5 Rating on Store
HTML · Interview Question
Detailed answer, explanation and code for this interview question. Ideal for HTML interview preparation, coding rounds and viva questions.
Which attribute is used to specify a unique identifier for an HTML element?
Master HTML with our complete collection of questions, tutorials and guides.