The foundation of a dropdown is usually a nested list within a container. The "parent" item holds the main label, and a "child" list holds the hidden options.

: Hover effects don't work on touchscreens. For mobile devices, you should use JavaScript to toggle the menu on a "click" instead of a "hover."

: It clearly shows users which pages are "sub-categories" of a main topic.

Below is an article-style guide on how to create one using standard HTML and CSS.

Products Laptops Phones Accessories Use code with caution. Copied to clipboard