[thelist] A (simple?) HTML question...

Joost van Velzen joost at nr6.nl
Tue Aug 19 07:50:37 CDT 2008


Yes, you are right (and of course, this is common knowledge). The HL2 
came from: "heading link 2" which IMO isn't a really good name to have 
when you want this style to be applied somewhere else than in a heading 
link 2.

Cheers,
Joost

Lawrence Oluyede wrote:
> On Tue, Aug 19, 2008 at 2:30 PM, Joost van Velzen <joost at nr6.nl> wrote:
>   
>> Hi Kipper,
>>
>> Why do you need that class in "<a href="url" class="HL2">heading</a> "
>> sure, now you can
>> ".HL2 { css stuff }"
>> but why not use
>> "h2 a { css stuff }"
>>
>> I prefer to write the h2 a version, because this saves you adding
>> classes to every single a withing an h2.
>>     
>
> The first (with a meaningful classname) is better if you have to apply
> the same style to entirely different kind of elements.
> The second one is clear per-se.
>
> IMO obviously
>
>   




More information about the thelist mailing list