![Una Kravets](https://web.dev/images/authors/unakravets.jpg) Una Kravets [X](https://twitter.com/una) [Mastodon](https://front-end.social/@una) [Homepage](https://una.im) The select element gets a small but mighty upgrade in Chrome 119, with a feature that also landed in [Safari 17](https://webkit.org/blog/14445/webkit-features-in-safari-17-0/). Now, you can add `<hr>` (horizontal rule) elements into the list of select options and they will appear as separators to help visually break up the options for a better user experience.

<br />

![Screenshot of before and after with hr in select. The after image has dividers between groups.](https://developer.chrome.com/static/blog/hr-in-select/image/screenshot-before-after-0dfcb0cb4fe16.jpg)

To achieve this, add `<hr>` elements into the options list as shown in the following HTML:

```html
<label for="major-select">Please select a major:</label> <br/>

<select name="majors" id="major-select">
  <option value="">Select a major</option>
  <hr>
  <option value="arth">Art History</option>
  <option value="finearts">Fine Arts</option>
  <option value="gdes">Graphic Design</option>
  <option value="lit">Literature</option>
  <option value="music">Music</option>
  <hr>
  <option value="aeroeng">Aerospace Engineering</option>
  <option value="biochemeng">Biochemical Engineering</option>
  <option value="civileng">Civil Engineering</option>
  <option value="compeng">Computer Engineering</option>
  <option value="eleng">Electrical Engineering</option>
  <option value="mecheng">Mechanical Engineering</option>
</select>
```
<iframe allow="camera; clipboard-read; clipboard-write; encrypted-media; geolocation; microphone; midi;" loading="lazy" src="https://codepen.io/web-dot-dev/embed/GRzKzVK?height=350&amp;theme-id=light&amp;default-tab=result&amp;editable=true" style="height: 100%; width: 100%; border: 0;" title="Pen GRzKzVK by web-dot-dev on Codepen">See the Pen <a href="https://codepen.io/web-dot-dev/embed/GRzKzVK">Pen GRzKzVK by web-dot-dev on Codepen</a></iframe>

Small changes can make a difference to your users. For more information on the future of form controls, including how to make them fully stylable, learn about the [popover API](https://developer.chrome.com/blog/introducing-popover-api.md.txt) and keep an eye out for the future [selectlist](https://open-ui.org/components/selectlist/) element.