Hello,
HTML Extended, available in Premium licenses since the release of phpdocx 9, supports adding headers and footers from HTML.
If your code has header and footer tags that you want to add in Word headers and footers you need to split the HTML and then add them as WordFragments (or separate the HTML source). There's no tag to add HTML to a header (or a footer) without creating a WordFragment and setting the right target.
If your template methods to add HTML or other content, please remember to set the right target (document, header, footer...).
HTML Extended, available in Premium licenses since the release of phpdocx 9, supports adding headers and footers from HTML.
Regards.