Home / Programming MCQs / HTML MCQs / Question

R

Ram Sharma • 188.81K Points
Coach

Q. Which attribute is used to specify a unique id for an HTML element?

(A) style
(B) css
(C) id
(D) class
Explanation by: Jatin Dubey
id is attribute of HTML tag. Different tag has different and unique id. 

Example:- 
<div id="topDiv"></div>
<div id="rightDiv"></div>

You must be Logged in to update hint/solution

Discusssion

Login to discuss.