Each id should only be used one time so it’s Element. For classes, there can be many elements with the same class name so it is Elements. This is also why the two methods do not return the same things (Element object vs HTMLCollection).
getElementById
getElementsByClassName
Or you can just use querySelector and querySelectorAll using a selector string (same as what the CSS selector would be).
They are in my opinion a cleaner API and the NodeList returned by querySelectorAll has the forEach method on it (except in old browsers).
making baby name generator is so much easy use this github link ang the the free code for baby name generator and also checkout the UK fake name generator tool.