Hello,
You can add CSS properties and HTML tags using both HTML import methods (embedHTML and replaceVariableByHTML). We recommend you to read the documentation available on https://www.phpdocx.com/documentation/introduction/html-to-word-PHP
Regards.