Option 1:
input[type="checkbox"]:checked+i { opacity: 1; } label { position: relative; } i { position: absolute; left: 6px; top: 3px; display: block; width: 8px; height: 8px; background: #000; opacity: 0; }
<label class="i-checks"><input type="checkbox"><i></i>Запомнить меня</label>
The i tag follows the input[type="checkbox"] to make it easier to stylize a custom (not as the developers intended, but as the designer wants) the checkbox.
Option 2:
i { display: inline-block; vertical-align: middle; width: 8px; height: 8px; background: #000; margin: 0 10px; }
<label class="i-checks"><input type="checkbox"><i></i>Запомнить меня</label>
Instead of a black box, there may be an icon or any other element. Those. The i tag here is used to insert an element (most often an icon).
irather like a shortcut for italic - Grundy