Normally you want to split your html objects (like styles, scripts, and data) into separate files to make things more reusable. However sometimes when you're creating an internal developer report (for status, confirmation, quick info, etc...), it's easier to give the user a single html file than a whole collection of files. For example, suppose you're making an internal WinForms tool that assists with some development task, and then generates an Html status report. As a single file, it's easier to mail to others or copy into different directories,.
An html page can have several components, each as separate, physical files:
- The main html page itself
- A style sheet
- Inline frames
- An Xml data source
We can imitate some features of inline frames via CSS by scrolling inline tables.
If you're already automatically generating the report, then you've already essentially split data from presentation and therefore you can also hardcode the data directly into the Html itself.
That leaves us with Images - which I'm not sure of any way to embed images into an Html file.
However all in all, having the option of putting your styles, scripts, inline frames, and data all into a single file may make it easier to manange for internal reports.
Post a Comment