input {
border: 5px solid blue;
}
<div>
<h1>Grocery List</h1>
<ul>
<li>Eggs <input type="checkbox" checked></li>
<li>Apples <input type="checkbox" checked></li>
<li>Bananas <input type="checkbox"></li>
</ul>
</div>
<div>
<input type="text" name="itemNum"><label>Item Number</label>
<input type="text" name="itemName"><label>Item</label>
</div>
I want to make checkbox and input have a border. So I wrote like this but it only makes a input border not checkbox. How can I have checkbox border as well? And why it does not work this way?