Select: Select with option groups:
Select multiple: Select multiple with option groups:
Select hierarchical, tree view: Alkaline Metals Halogens Select with additional markup Alkaline Metals

subgroup

Halogens Transuranium elements
Select with flow:h-flow, four items per row (if space allows)