+ 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 odpowiedzi
+ 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