Creating Alternate HTML Formats

HTML comes in a variety of versions and sizes. For example, ODS HTML produces HTML 4.01-compliant tags in SAS®9. Why would you want to switch HTML formats within SAS? One reason is file size. The ODS HTML statement in SAS®9 produces a large inline style section. If you're creating a simple report, this probably does not matter. However, if your users have slow Internet connections, the file sizes can become prohibitively large. Three ways to create smaller files are to use ODS CHTML, ODS HTML with an external Cascading Style Sheet (CSS) file, or PHTML.

A CSS file contains instructions that define aspects of your HTML document such as color, font, and layout. When you want the same look for many documents, it might ...

Get Output Delivery System: The Basics and Beyond now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.