+ 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,,,,🙏🙏🙏🙏🙏🙏🙏👹🤦🙆
10 Answers
+ 1
Give examples madam
+ 1
For head & paragraph?
+ 1
What is an id ?
+ 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
}
+ 1
Id is an global attribute it can be use with all tags.
+ 1
Tq u all 😊😊👍👍👍💐💐
+ 1
Thank you sir Hamza Rarani 😊😊😊🙃🙃😊sir
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.
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.
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.