I just finished a tutorial that told me to create my
header.php without closing a tag at the bottom of the included file.
Now while I realize that in anyone of the parent files which includes
header.php it includes the closing tag; this really goes against my better judgement as a front-end developer; because someone who edits the theme later (and it could be me, it could be somebody else) would have to know that this tag needed to be closed in the parent file which includes it. It just feels wrong. It feels like when your editor marks the tag as "an extra closing tag" you want to delete it.
I'm not breaking a standard if I use:
<?php include(TEMPLATEPATH . '/justTheHTMLHeader.php'); ?> <!-- AND --> <?php include(TEMPLATEPATH . '/justTheBlogHeader.php');` ?>
It seems to me that this approach would be more modular and not leave any extraneous tags not closed between included files and their parents.
I also noticed that the default Wordpress template is setup this way, so I'm obviously wrong and breaking some sort of Wordpress theme standard not matter what I think.
What's the reasoning behind this?