php – the code escapes to div

This is in my header.php file.

When I inspect the elements of the site, everything is contained in the "coll-full" div except for the last "custom-primary-menu.php" element. Instead, it's in the div that contains "coll-full". Is there anything obvious that I'm hurting?