Why was class used here instead of id
Hello, so I am in the process of still learning web development and something that I just can not grasp the idea of is Id and classes. I have been watching Traversy media YouTube and have learned a lot but in one of his videos I do not know why he used class instead of Id for certain things. Here is the link to the code I am talking about. https://codepen.io/bradtraversy/pen/jvKmjB For example: for logo he used a class but I thought classes are more for a general use (when wanting multiple things to be the same in that class) while Id is for something specific. Because he is just editing the logo should the logo not be a id then? I would really appreciate if someone can explain the code (linked above) and why class is chose instead of Ids and maybe some more explanations of when to use a class vs Id Thankyou everyone I hope I explained well enough and I hope you all have a great day! :D