Ed Tech UI Guy

Thursday, January 13, 2005

My CSS Faux Pas

I discovered this morning that I have been doing some of my CSS and XHTML coding wrong. I am chagrined

I've always coded anchor tags so that they are empty, like this:

<h3><a name="Goose"></a>Goose</h3>

Instead of wrapping them around text like this:

<h3><a name="Goose">Goose</a></h3>

I did that because otherwise the the Text in the header would look like a link. And that's because I'd been applying to <a> tags in a sloppy sloppy way. I was applying styles just to 'a' instead of 'a:link.' Here's the right way to do it. I hang my head.