W3 Engineers interview question

How to get elements from HTML pages?