Elements can be selected in JavaScript as the whole page is an object and we can access each and every element in it using the document object