# Example: Grouped Menu Items With Titles From Markup (YUI Library) [Examples Home]

This example demonstrates how to title groups of MenuItem instances. The Menu API also supports building a menu like this using nothing but JavaScript.

Note: By default clicking outside of a menu will hide it. Additionally, menu items without a submenu or a URL to navigate will hide their parent menu when clicked. Click the "Show Menu" button below to make the menu visible if it is hidden.

###### Yahoo! PIM

- Yahoo! Mail
- Yahoo! Address Book
- Yahoo! Calendar
- Yahoo! Notepad

###### Yahoo! Search

- Yahoo! Local
- Yahoo! Maps
- Yahoo! Travel
- Yahoo! Shopping

###### Yahoo! Communications

- Yahoo! Messenger
- Yahoo! 360
- Yahoo! Groups
- Yahoo! Photos