In general, you should refrain from using ids and prefer using the class attribute. There is no real downside and using id will, of course, lead to issues when there are multiple elements on the same page.