Quantcast
Channel: Active questions tagged html - Stack Overflow
Viewing all articles
Browse latest Browse all 67411

How do I use html code in an .inc file which is called by a php file?

$
0
0

Title seems a little butchered, but basically I have a php file that is trying to call .inc file with includes code for a menu. I'm using:

<?php
    include_once("php_menu.inc")
?>

And this is my HTML code:

<nav>
        <ul>
        <li class="navigation"><a href="index.html">Home</a></li>
        <li class="navigation"><a href="topic.html">Information</a></li>
        <li class="navigation"><a href="quiz.html">Quiz</a></li>
        </ul>
</nav>

But how do I write this in php_menu.inc so that it's actually picked up?


Viewing all articles
Browse latest Browse all 67411

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>