> > At the very basic level, the article exemplifies
> h1[rel="external"]{color :
> > red;} used with the html:
> >
> > <h1 rel="external">Attribute Equals</h1>
> 
> 
> As others have said, this is an invalid use of rel. We could change
> his example from:
> 
> <h2 id="first-title" class="magical" rel="friend">David Walsh</h2>
> 
> To
> 
> <h2 id="first-title" class="magical friend">David Walsh</h2>
> 
> (I'd also get rid of "first-title"...)
> 
> 
> That said, attribute selectors are very useful. Think about a form.
> Instead of adding a class to all text input boxes, you can style them
> with a simple:
> 
> input[type="text"] {/* whatever styles */}
> 
> For links, how about:
> 
> a[href^="http"] {/* links starting with http */}
> 
> a[rel] {/* any link with a rel attribute */}


Regarding performance, using a class may be a better choice:

https://developer.mozilla.org/en/writing_efficient_css

--
Regards,
Thierry
www.tjkdesign.com | www.ez-css.org | @thierrykoblentz






*******************************************************************
List Guidelines: http://webstandardsgroup.org/mail/guidelines.cfm
Unsubscribe: http://webstandardsgroup.org/join/unsubscribe.cfm
Help: [email protected]
*******************************************************************

Reply via email to