You can kinda invent your own weird design language with attributes and attribute selectors

In CSS, attribute selectors have some fairly powerful matching abilities. You can match any attribute and and any attribute with exact values, values that start with certain text, contain certain text, end with certain text, etc. This allows you to get pretty weird with a styling “language” if you want to.
For example…

That’s a totally made up attribute, so hopefully that never means anything in future HTML. We can select on it now though:
[fencing=”a …
You can kinda invent your own weird design language with attributes and attribute selectors is a post from CSS-Tricks

via Reme Le Hane

Advertisements

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s