To better understand how navigation menus are working, refer to the official WordPress documentation and the register_nav_menu() function reference.