Because
php is a server side language, it will include your menu file e.g: <a href="#">page</a>, before the user sees it so in effect the
html code will just be <p>Page Here</p><a href="#">Page</a> and so all the styling will be done after just like anormal page