I use <A NAME=" "> around headings so that when I click a link from an index at the top of the page it jumps to the heading. However, once I add the <a … /a> tags to the heading it changes colour as though its a link.
If I have a class called .heading, in the stylesheet how do I make it so that .heading and ‘a’ tags attached to it are all the one font and colour? Something in one line along the lines of .heading, a, a variants etc = greyblue
You could, as you hinted, use .heading a{color:whatever; } (or h1 a, h2 a, h3 a , h4 a {color:whatever;} would work too… assuming you were only going to give the class heading to Hxs.
the other is to style A’s and then style a:link {}.
a{} will apply to all anchors weather they are links or not.
a:link will apply only to HREF anchors.