Computer Science, asked by teju6806, 8 months ago

What is the difference between the CSS ""id="" and ""class="" in an HTML tag?

Answers

Answered by sheenabeno
0

Answer:

In the CSS, a class selector is a name preceded by a full stop (“.”) and an ID selector is a name preceded by a hash character (“#”). The difference between an ID and a class is that an ID can be used to identify one element, whereas a class can be used to identify more than one.

Explanation:

Answered by kshitijmk303
0

Answer:

see when we are giving id it cant be repeated and in css we are writing #id and in class we wright .class

Explanation:

please mark this brainliest

Similar questions