CSS Element working without ID and Class

image
h4 tag is without “# ID” and “. class” then why it is working and there is no h4 tag element in my code.

I don’t understand what you are talking about? What is the problem exactly? What do you mean by it’s working?

1 Like

I mean class and id of css work when i call this in tag like <h4 class="any" id=" " > while h4 on top neither class nor id and its properties are applying in my tag maybe its because of inheritance.

You’re literally saying “apply these styles to h4 elements” so naturally the styles apply to the h4 element.

1 Like