I have an id right now which I call on different pages, but never on the same page so it works. Would the best practice be to make it a class because its being called on different pages, but not more than once on the different page.
For example, say I have my home page. I call the id test once there. then maybe on my about page I call the id test there again. I will never need to call the id test more than once on a page. Should I use an id or class?
Syntactically, there is nothing wrong with using ID so long as you only use that ID once per page. For CSS, that is the purpose of an ID. However, I don’t know if there’s any point unless you intend to also use that ID in JavaScript.
If you instead use a class, it will provide more flexibility down the road if you end up using the “test” ID more than once per page. I know you don’t intend to now, but you might later.