PHP is used on the back end of your website to handle dynamic content. HTML and CSS are used to render your site in a browser. If you're only wanting to affect the way your site appears in a web browser, use either HTML or (preferably) CSS. When one of the buttons in the navbar is clicked, your php code will handle that request.
Create your navbar using HTML and CSS, then add dynamic functionality with PHP. |