ID is global attribute or local attribute??? | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
+ 2

ID is global attribute or local attribute???

19th Aug 2017, 1:23 PM
saniya ansari
7 Answers
+ 11
Global, it can be used on any HTML element.
19th Aug 2017, 1:25 PM
Maz
Maz - avatar
+ 8
(@Lakshay) [ ... Yes it is a global attribute but it can't be used with a few tags like <head>, <body>, <title>, <meta> and... ] As i already wrote it can be used on any HTML tag, altough global attributes may have no effect on some elements, i recommend to read something about, here a quick reference: http://bit.ly/2x19C39
19th Aug 2017, 2:58 PM
Maz
Maz - avatar
+ 1
thanku
19th Aug 2017, 1:26 PM
saniya ansari
+ 1
Yes it is a global attribute but it can't be used with a few tags like <head>, <body>, <title>, <meta> and <param> etc.
19th Aug 2017, 1:32 PM
Lakshay
Lakshay - avatar
+ 1
id is a global attribute.
20th Aug 2017, 4:50 AM
Ashvin Khodifad
Ashvin Khodifad - avatar
0
im not understood
19th Aug 2017, 2:35 PM
Sarifudin Z
Sarifudin Z - avatar
0
global
12th Oct 2017, 2:09 PM
Hiten Gal
Hiten Gal - avatar