@SempervivumAug 18.2020 — #Use `nth-child` in order to address these item: document.querySelector('.main-menu li:nth-child(3)').classList.add('highlight'); document.querySelector('.main-menu li:nth-child(4)').classList.add('highlight'); Then you can style these items by CSS: <style> .highlight { font-weight: bold; color: #F23F3F; } </style>