In using CSS is it best practice to use a div id only once per page. I know each id has to be unique but could be used multiple times. A discussion with my development tea
First, tags usually refer to elements such as div, a, img, body, ... Attributes are values given inside the tags such as id, class, href, ...
The id attribute can be specified once for each tag, with the constrain that no two tags share the same id value.
Both your examples are valid.