Welcome Guest, Not a member yet? Register   Sign In
[SOLVED] <div> starting in header template and ending in footer template
#12

I want to make sure I understand. You supply the following

Code:
<html>
    <head>
        <title>CodeIgniter Tutorial</title>
    </head>
    <body>
        <div>
            <h1><?php echo $title; ?></h1>

<!--footer template-->
            <em>&copy; 2015</em>
        </div>

        <div>
        </div>
    </body>
</html>

But it renders as

Code:
<html>
    <head>
        <title>CodeIgniter Tutorial</title>
    </head>
    <body>
        <div>
            <h1><?php echo $title; ?></h1>

<!--footer template-->
            <em>&copy; 2015</em>

        <div>
        </div>
        </div>
    </body>
</html>

Is that right?

There isn't any way that CodeIgniter would cause this to happen. I have to guess you have some code you're not showing and in that code there is a <div> that isn't closed. The magically appearing closing tag is being supplied by the browser.
Reply


Messages In This Thread
RE: <div> starting in header template and ending in footer template - by dave friend - 07-24-2018, 05:39 AM



Theme © iAndrew 2016 - Forum software by © MyBB