For my website I will need to use <span>
instead of <a>
, because I am using mostly ajax and thus instead of links I have onclick ajax events as attributes in my spans.
As a result, I had to manually style the spans to look like links. I have used hover and visited pseudo classes to change background and text colour, but to change the mouse default to a pointer finger on hover, will I need to use javascript? Or can I do that using css?
Also, I have just realized: I could not just use the <a>
tag anyways instead of <span>
, but just instead of an href, I would include an onclick? It should work just the same, no?
span
instead you are penalizing yourself on search engines since spiders don't know what to crawl anymore without href.