I'm writing a report generator for an automation tool.
Right now I have a report template html file which is read by the generator and the results are filled in by the tool to be written to another html file.
I suppose the benefit of using the <style type="text/css">
tag inside the html file would be that the report can be copied (or emailed) as a single file, while having it link to a stylesheet would require that the stylesheet to be copied along with the html file.
A stylesheet file would save a small amount of space but I'm not sure if that's really enough justification to use it. I suppose while writing the css styles it would be easier to have it link to a stylesheet so I don't have to generate a new report to view my changes across multiple already generated report files.
These html report files won't be hosted on a website so caching doesn't need to be considered. It's likely the report will only be viewed once or twice and then deleted or archived. The report file can either be automatically generated to a Temp folder or manually generated to a user specified path.
Would it be better to write the CSS into a separate stylesheet or write it directly inside the generated HTML report file (actually all css styles are written in the template file)?