Multiple choice .net asp

Lets say that your include file is a piece of code that will print out your navigation menu. Where would you place the include statement?

  1. At the beginning to keep the code neat and tidy

  2. Anywhere in the code where it is actually needed.

Reveal answer Fill a bubble to check yourself
B Correct answer
Explanation

A navigation menu include should be placed exactly where the menu should appear in the rendered page. Unlike configuration includes, UI components like navigation menus are position-dependent. The include statement should be placed at the specific location in the HTML where you want the menu to display to the user.