W3 Engineers Interview Question

How to get elements from HTML pages?