Vexing PHP question
-
In WordPress php files, shouldn’t there be an equal number of opening and closing <div> statements?
In a header.php file I’m trying to tweak there’s more opening ‘ids’ and ‘classes’ than closing ones …
Here’s the section of ‘unbalanced’ code: if you count the number of <div> opening statements, there’s five of them…
But only four closing </div>… And the <body> statement doesn’t close either.<body>
<div class=”vertical-background”></div>
<div class=”wrap”><div id=”header”>
<h1 id=”title”><I took out the link); ?></h1>
<div id=”subtitle”><?php bloginfo(‘description’)?></div>
</div><div class=”static-navi”>
-
(I took out the links)
</div>
Does the final </div> in a php file close everything… or is there a reason for not closing some statements in the file?
- The topic ‘Vexing PHP question’ is closed to new replies.