# Test element in JavaScript

Let's create a test element to study various metrics in the following lessons. We design this element so that it has borders, padding, and scrollbars:

`<div id="elem"> some long text </div>` `#elem { width: 300px; height: 150px; margin: 50px auto; padding: 25px; background: #CFF5BF; border: 25px solid #F0D7A1; overflow: auto; text-align: justify; }`

:

Let's get a reference to this element into a variable:

`let elem = document.querySelector('#elem');`

Make a similar test element for yourself. Check on it the properties that will be studied in the following lessons.

←→
↑
en ru