We cannot add an id attribute to body - true and for head, paragraph, is false or true, please explain these questions,,๐Ÿ‘น๐Ÿคฆ๐Ÿ™† | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
+ 2

We cannot add an id attribute to body - true and for head, paragraph, is false or true, please explain these questions,,๐Ÿ‘น๐Ÿคฆ๐Ÿ™†

I am confusing in these questions,, how many times attend the html quizes, but i got wrong answer, when i am attending these questions,, i am completely wrong, Please explain anyone, these questions , i didn't understand still,,,,๐Ÿ™๐Ÿ™๐Ÿ™๐Ÿ™๐Ÿ™๐Ÿ™๐Ÿ™๐Ÿ‘น๐Ÿคฆ๐Ÿ™†

24th Aug 2020, 7:05 AM
๐Ÿ‡ฎ๐Ÿ‡ณNaseemabanu๐Ÿ‡ฎ๐Ÿ‡ณ
๐Ÿ‡ฎ๐Ÿ‡ณNaseemabanu๐Ÿ‡ฎ๐Ÿ‡ณ - avatar
10 Answers
+ 1
Give examples madam
24th Aug 2020, 7:34 AM
๐Ÿ‡ฎ๐Ÿ‡ณNaseemabanu๐Ÿ‡ฎ๐Ÿ‡ณ
๐Ÿ‡ฎ๐Ÿ‡ณNaseemabanu๐Ÿ‡ฎ๐Ÿ‡ณ - avatar
+ 1
For head & paragraph?
24th Aug 2020, 7:28 AM
๐Ÿ‡ฎ๐Ÿ‡ณNaseemabanu๐Ÿ‡ฎ๐Ÿ‡ณ
๐Ÿ‡ฎ๐Ÿ‡ณNaseemabanu๐Ÿ‡ฎ๐Ÿ‡ณ - avatar
+ 1
What is an id ?
24th Aug 2020, 7:31 AM
๐Ÿ‡ฎ๐Ÿ‡ณNaseemabanu๐Ÿ‡ฎ๐Ÿ‡ณ
๐Ÿ‡ฎ๐Ÿ‡ณNaseemabanu๐Ÿ‡ฎ๐Ÿ‡ณ - avatar
+ 1
Call me sir please instead of madam if u intend on refering to me that way. Any ways , Example: <p id="paragraph">some content</p> Now refering to it in css: #paragraph { Some style }
24th Aug 2020, 7:37 AM
Hamza Rarani
Hamza Rarani - avatar
+ 1
Id is an global attribute it can be use with all tags.
24th Aug 2020, 7:59 AM
Divya Mohan
Divya Mohan - avatar
+ 1
Tq u all ๐Ÿ˜Š๐Ÿ˜Š๐Ÿ‘๐Ÿ‘๐Ÿ‘๐Ÿ’๐Ÿ’
24th Aug 2020, 8:03 AM
๐Ÿ‡ฎ๐Ÿ‡ณNaseemabanu๐Ÿ‡ฎ๐Ÿ‡ณ
๐Ÿ‡ฎ๐Ÿ‡ณNaseemabanu๐Ÿ‡ฎ๐Ÿ‡ณ - avatar
+ 1
Thank you sir Hamza Rarani ๐Ÿ˜Š๐Ÿ˜Š๐Ÿ˜Š๐Ÿ™ƒ๐Ÿ™ƒ๐Ÿ˜Šsir
24th Aug 2020, 8:04 AM
๐Ÿ‡ฎ๐Ÿ‡ณNaseemabanu๐Ÿ‡ฎ๐Ÿ‡ณ
๐Ÿ‡ฎ๐Ÿ‡ณNaseemabanu๐Ÿ‡ฎ๐Ÿ‡ณ - avatar
0
I guess there is no need to provide an id for body since we do not use more than one body in our codes right. That's my thought but waiting for more answers.
24th Aug 2020, 7:13 AM
Hamza Rarani
Hamza Rarani - avatar
0
Same goes for head as for the body. But you can provide an id for a paragraph as far as i know. Cause we can end up using more than one paragraph in our code.
24th Aug 2020, 7:31 AM
Hamza Rarani
Hamza Rarani - avatar
0
Id is used to add a unique identity of it's own to a tag element in html so that u can refer to it easily while working on it with css or javascript.
24th Aug 2020, 7:33 AM
Hamza Rarani
Hamza Rarani - avatar