Simple navbar in pure HTML5 and CSS3
You probably want to reset the margin and padding of li items, too.

Using float to layout elements horizontally is outdated. Using flexbox should be preferred nowadays. That would also make overflow: auto redundant.

Prefer a child combinator instead of a descendant combinator if possible: .dropdown &gt; ul.

A dropdown on hover isn't usable on a touch screen.