Home > Net >  HTML element without attribute?
HTML element without attribute?

Time:01-02

Is there any HTML element without having an attribute exists? Please describe if any such html element exists. Is there any exception for "All HTML elements have attributes" this statement?

CodePudding user response:

To select elements without attribute we can use not selector extension while for empty attribute attribute just CSS attribute selector with empty value.

CodePudding user response:

There are HTML elements without attributes like < div > , < span > These tags is used as an container div is block container and span is inline container. Then there are semantic tags that doesn't have any attributes but it provides meaning to your code.

I hope this is what you meant.

  • Related