If you define an element with id
attribute on it
<p id="text">some text</p>
then you will be able to access this element in the console by value provided in the id
attribute.
>> text
For example, if open devtools on this page and type search
to the console, then the form element will be logged.
Does anyone know where this functionality described?