I have a website in which I provide tooltips for certain things using a hidden <span> tag and javascript to track various mouse events. It works excellently. This site somewhat caters towards people with vision issues, so I try to make things degrade as well as possible if there is no javascript or css and generally I would say that it is successful in this regard.
So my question is, is it possible for these <span> to only exist if css is being used? I have though about writing out the tooltips in javacsript on document load. But I was wondering if there is a better solution.