They probably want you to access the element in some way to move it to the left. It is better to use a class, because it is possible that at some point you will want to move another element to the left. If you use id instead of a class, you may need to repeat the same CSS rule for two different elements (different identifiers). Repeating the code is considered bad practice and should be avoided, if possible, at the development level (there is no need to rewrite anything later), so it is suggested to use the class instead of id.
source
share