Links to CDC Non-HTML Files
On This Page
Non-HTML files include PDFs, Word documents, and PowerPoint presentations – anything that is not a “standard” web page and may require users to have additional plug-ins to access the content in the file. The use of non-HTML files to provide CDC content should be avoided. In most instances, the content contained within these files could and should be integrated into the WCMS to be managed and displayed as “standard” web content. This approach best supports accessibility, Search Engine Optimization (SEO), and usability as well as consistent web management practices.
Style
If links to non-HTML Files are used, they must comply with the HHS Web Standard: Provide File Type and Size with Downloadable Files. This standard says that all links to files such as PDFs must have an indicator of the file type and one file detail such as file size, number of pages, or number of minutes. CDC also standardizes the display of icons to represent the file type so that users have an additional cue they are opening a file. Non-HTML links should allow wrapping within the text and between the file icon and detail so that these are always displayed together. The link color and underlining rules are the same as standard web content links within the content area and containers.
WCMS Support
If you are working in the WYSIWYG editor and you insert a hyperlink to a non-HTML file, the WCMS automatically includes the file type and size in the file properties, which are displayed per the HHS standard on the published page. In the hyperlink settings form, you may override this information as long as you adhere to the HHS Web standard (for example, to add a detail, such as the number of pages).
Example: various file types with icons and file sizes
- List Item 2 [PDF – 8K]
- Download and print this PDF fact sheet [PDF – 123 KB]
- Download and print this WORD fact sheet [DOC – 35 KB]
- Download and print this Excel fact sheet [XLS – 200 KB]
- Download and print this PPT fact sheet [PPT – 240 KB]
- Download this audio file [MP3 – 5 MB]
- Download this video file [WMV – 9 MB]
- Download this audio file [QT – 4.3 MB]
- Download this audio file [RAM – 21 MB]
- View this text file [TXT – 3 KB]
- Download this zip file [ZIP – 100 MB]
- Download this epub file [EPUB – 100 MB]
File Icons
File icons should be displayed with each non-HTML file link. This table shows the icons associated with each icon and the abbreviation that can be used in the text following the icon. These file icons automatically display for links in the RD Templates based on the file extension used in the link.
Icon |
File Extensions |
File Type Abbreviation |
---|---|---|
.ppt .pptx |
PPT |
|
.doc .docx .rtf |
DOC |
|
.xls .xlsx .csv |
XLS |
|
.aac .aiff .avi .mp3 .mp4 .mpg .mpeg .wmv .wav .wma |
File extension, e.g. WMV |
|
.mov .m4v .qt |
File extension, e.g. MOV |
|
.ram .rmm .ra .rax .rv .rvx .rm .rms |
File extension, e.g. RAM |
|
.txt |
TEXT |
|
.zip .cab |
ZIP |
|
.epub .mobi .azw .iba .bbeb .prc |
EPUB |
File Details
One File Detail such as file size, number of pages, or number of minutes must be added by content owners – the details are not automatically displayed. This text should be displayed in dark gray (404040) and contained in brackets as shown. This table shows the standard formats for each detail option.
Detail |
Example |
Best For |
---|---|---|
File Size |
150 KB 16 MB 3 GB |
PowerPoint Files (PPT) Excel Files (XLS) Audio/Video Files Word Documents (DOC) Zip Files (ZIP) |
Number of Pages |
25 pages |
Word Documents (DOC) |
Number of Minutes |
5 minutes 6:45 minutes (when seconds are shown) 90 minutes 87:13 minutes (when seconds are shown) 125 minutes |
Audio/Video Files |
Exceptions to Style
Some sites may need to display a long list of link to non-HTML files (20 or more) as in a table of many PDF documents. In these rare instances, you can set the Settings for each hyperlink to hide the file icon in order to avoid displaying so many redundant icons. This can be done using the noLinking class.
No |
RD Template Automation Content owners may hide the file icons for long lists of links. |
Behavior
Links to non-HTML files should open content in a new browser window to help prevent users from inadvertently closing the entire CDC site when they are finished using a document. This behavior should be the same for the link label and the file icon – both open the same target file in a new browser window. Non-HTML file links in the RD Templates automatically open in a new window.
Yes |
RD Template Automation Links to non-HTML files open in a new browser window by default. |
Placement
If access to non-HTML files must be provided, links to these files should only be placed in the content area or in designed modules. They should not be placed in the Left Navigation, Navigation Buttons, Feature Players, Navigation Maps, or other features that support site navigation or promote specific content. If used in these areas, the link style may break the layout of the container or surrounding features. Navigation Maps will not automatically display the file icons due to design and layout limitations.
File Format Help
If links to non-HTML Files are used, they must comply with the HHS Web Standard: Plug-Ins for non-HTML Files. This standard says CDC must provide links to any readers or plug-ins necessary to access the content in non-HTML files.
CDC has a standard “File Formats Help” section to provide access to this information. This section should be displayed on every page containing a link to a non-HTML file. This section is automatically displayed in the RD Templates for non-HTML file link detected for each page.
The icons in this section will only display if the corresponding file type is linked on the page. For example, if the page only contained a link to a Word document, only the Word icon would be displayed in the section. The link in the File Formats Help section opens the “File Format used on CDC.gov” web page.
Yes |
RD Template Automation The File Format Help section displays when non-HTML files are detected on the page. |
Example: File Formats Help section with many file types
- Page last reviewed: July 6, 2017
- Page last updated: July 6, 2017
- Content source: