+ 3
What is the differnce between class,id, span,div element of html?
html
2 Antworten
+ 1
class and id are attributes.
span and div are tags.
multiple tags can have same class but id should be unique to each element.
div is a block level tag and span is inline tag. however both of these are non-semantic tags i.e they don't have special meaning and whenever possible they should be replaced by semantic tags.