0

Why is the id used only once

29th Oct 2021, 3:26 PM
Raj Vigneshwar.k
3 Respuestas
+ 2
The id is used to identify exactly 1 html object in the DOM. If you want to address multiple html objects, you can refer to them by class or by tag name.
29th Oct 2021, 3:29 PM
Lisa
Lisa - avatar
+ 2
It means only one id can be assigned to a element as id is a unique name given to any tag/elements. So there can’t be more than one id to an element.
30th Oct 2021, 3:41 AM
Arun Jamson
Arun Jamson - avatar
+ 1
29th Oct 2021, 3:59 PM
A͢J
A͢J - avatar