As Pierre said, it's url params (what js calls URL.search and python calls url.query).
>>> from browser import document as doc
There is no DOM node on that page with id="lang" or class="lang" or even tag <lang>. query reads from document.location.
In which case the references to INPUT and SELECT should be removed.
Pierre - such elements may be one possible way to generate query params in a URL. But it's far from the only way, and I would say not the most common way these days.
More importantly, current text is confusing (as this email chain demonstrates). Elements on a page have no connection with page url. The text makes it sound like it queries INPUT and SELECT elements on the current page, which is not the case.
It would be much clearer to use URLs as examples without mentioning INPUT or SELECT, like this: