<form action="">
<fieldset>
<legend>Title</legend>
<div><label for="">Name</label></div>
<div>
<input list="name-list" type="text">
<datalist id="name-list">
<option value="Andrew"></option>
<option value="May"></option>
<option value="Peter"></option>
<option value="John"></option>
</datalist>
</div>
</fieldset>
</form>
Reference :
Web Dev Simplified (2021), https://www.youtube.com/watch?v=iX_QyjdctsQ&t=240s