How to enter CSS rules inside individual HTML tags?

I have to create several documents for a forum-style website. Pasting directly from LO just leaves out a lot of the formatting, so I tried exporting to html, and paste the generated code to the site.
It turns out that it is disallowed to have a tag in there, which would have to happen outside of the header section. It is in short impossible for me to attach these CSS rules.

Questions: Is it possible to have LibreOffice add style="" modifiers to each individual tag instead of using a general header definition when exporting to HTML? If not, is there some app out there that does this sort of thing?

Thanks

Hi @alan,

I’m not aware of an configuration options for the HTML export filter, but it looks like there are several “CSS-inlining” tools available online, such as this one:

Here’s a python lib to do CSS inlining – useful if you need to run it locally, want to integrate it into another tool, or etc…