How to call the top menu in Magento 2?

For call the Top menu using XML file. Please use the below code:How to call the top menu in Magento 2?
For call the Top menu in CMS page/static block. Please use the below code:

{{block class="Magento\Theme\Block\Html\Topmenu" template="Magento_Theme::html/topmenu.phtml"}}
For call the Top menu using PHTML file. Please use the below code:

<?php echo $this->getLayout()->createBlock("Magento\Theme\Block\Html\Topmenu")->setTemplate("Magento_Theme::html/topmenu.phtml")->toHtml(); ?>

Please leave your comment for asking any question or suggestion.expoundsofttechsolution How to call the top menu in magento 2?

Need Help?