Classes and get element by ID

I will say this question could be considered both HTML and JavaScript related so feel free to either move it to another sub forum or so say I placed wrong. The following is an example the question can possibly be answered without referring to the example. In (learn modern javascript methods by building football team cards - step-3) player_cards is referred to as a ID even though a class and as suggested the getElementById class work with it as a argument. Probably something that has not properly sunk from earlier learning can the ID of a element be its class just the class is the ID of multiple elements. If this is not the case is this a error worth reporting or just talking in a simplified way.

Please post the actual code and a link to the Step instead of a picture. Thanks

when you use getElementbyId you are getting an element with a certain ID, if you wanted to get an element by class you would use getElementsByClass

It seems you have some confusion between the attributes id and class in HTML, you may want to review them

You reassure that is what I thought but not how the lesson is. I am about to show.

link to step
Learn Modern JavaScript Methods by Building Football Team Cards: Step 3 | freeCodeCamp.org
proof the next step does not change the code as it does if you have entered something close the standard answer.

Learn Modern JavaScript Methods by Building Football Team Cards: Step 18 | freeCodeCamp.org

Sorry just realised my error there is a player-card class and player-cards ID

Like I just said please post the actual code INSTEAD OF posting pictures. Thanks

Personally I don’t like distinguishing a class from an ID by a letter s on the end I have found it confusing before and now lead to me making a mistake.

Matter is since resolved if you are not already clear. But point noted instead in future of post a screen shot with actually code contianed in like the second time just post the code. For clarity the only reason the HTML was not posted is when I came to realise to post it I realised my error.

I will also stay the second two screenshots were provide of evidence of what I was at least considering at the time that their was some error in course.

Please do not post a picture of code instead of code itself.

I know for next time.