Skip to toolbar

Community & Business Groups

A Propusal for A New Pseudo Element Called :icon

Take a look to this HTML5 code as shown here:

The question is: Isn’t icon="" attribute here a presentation attribute?
You might say yes, and it should be set using CSS like this:

However, this presentation attribute in turn needs presentation attributes! (position, padding…).

So, we need something in between: A Pseudo Element.
A Pseudo Element is simply an attribute has attributes.

Thus, icon="" as an HTML attribute for <command> should be deprecated.

Leave a Reply

Your email address will not be published. Required fields are marked *


Before you comment here, note that this forum is moderated and your IP address is sent to Akismet, the plugin we use to mitigate spam comments.