November 18, 2013: There is a moratorium on widget developments. We asking for a hold on new widget development or updates to existing widgets until we can resolve widget hosting and publishing issues. Existing widgets will continue to function for now. We'll post an update here as we know more; or contact your Web Council representative with any questions.
EPA builds all web content in the Drupal WebCMS as of January 2013. All new microsites and resource directories will be created using Drupal. There is still content on EPA's legacy servers and this content will be maintained there until it is transformed and moved into the Drupal WebCMS. The following information should be used only for minor updates/maintenance of existing pages; any significant updates or revisions to existing pages should be done in the context of One EPA Web content transformation into the Drupal WebCMS
Disclaimer: This is EPA Guidance for how EPA uses widgets. We have posted our guidance publically in the spirit of collaboration. Other agencies and organizations may use social media differently.
Note: Remember that your official activities on-line are subject to the ethics regulations Intranetas well as other federal and agency laws, policies and regulations. In addition, existing policies and guidance for accessibility Intranet, privacy, external site links, cookies, and writing style apply to social media tools as well. References to these are included at the end of this document.
On this page:
A widget Exit is a piece of Web code which can be added to somebody else's Web page. The code will appear on the other Web page, but you still manage and maintain the content of your widget. It permits you to provide useful information in a shareable format.
Your content coordinator should contact the Office of Web Communications (OWC) after you've read this guidance, but before you start developing your widget.
Why Use Widgets?
Your widget is content that you produce that shows up on somebody else's Web page; thus, widgets can reach a broader audience than EPA's webpage, www.epa.gov.
This piece of code can be used to provide information in many ways, for example:
- Access to geographic data, as in the case of the MyEnvironment widget
- A series of tips which change daily as the Environmental Tip of the Day
- A space for an RSS feed
- An informational widget providing a link to additional information, such as the WaterSense widgets
- And many other ways to provide small chunks of information for others to embed on their web pages
See examples of EPA Widgets.
Things to consider before creating a widget
- Widgets provide content or functionality that others can add to their own, non-EPA Web pages, for themselves and also for their users. In other words, the users of a widget aren't necessarily the same people who would add it to a Web page. For example, a library might add an EPA search widget to its site, but it's actually library patrons who will use it.
- The widget should offer information that changes (for example a daily tip) or a function (such as a ZIP code lookup). Don't create a widget with only a fixed image or static content… this is merely a text box and a does not need to be delivered through a widget process. Don't create a widget about your office or organization.
- Even though widgets are on the Web, they are not Web pages and do not stand alone. A widget usually cannot be taken down without disrupting users who have added it to their Web page.
- To be sure widgets are worth continuing, plan ahead how you will monitor widget usage and keep track of changes over time.
All widget concepts should be reviewed and approved by the OWC before you begin developing the widget.
Get approval from:
- Your manager; and
- Your content coordinator (see Web Council Members and Other Key Web Contacts to find your content coordinator); and
- OWC (your content coordinator will get this for you).
Please read this entire document before you begin. This document describes the general process and standards for developing EPA widgets. The process approximates a generalized widget life-cycle:
Answer these questions before contacting your Content Coordinator:
Purpose and function
- What will the widget do?
- What is your goal for this widget?
- How does it support your program's mission?
- Who do you expect to add your widget to their Web page?
- Who do you expect to use the widget?
- When and how you will announce availability of the widget?
- How will you update the widget content or function?
- How often will you update the widget content or function?
- How will the widget be accessible, e.g., meeting Section 508 requirements?
- What are any possible security issues?
- What are any possible conflicts with existing federal or EPA policies?
- What will the widget look like and how big will it be?
- Do you and your management understand and support a widget as a virtually forever commitment?
- How will you measure widget use or success?
- If the widget has a finite life cycle, how long is that?
First get approval from your management, Content Coordinator, and OWC for the widget concept before you begin to develop a widget. Follow the standards listed below. If you wish to deviate from a standard, please bring the reasons why to your Content Coordinator and get approval from OWC before you proceed.
See EPA Widgets for examples. Note: effective February 19, 2010, all new widgets should comply with the guidelines below (see "Important" below).
In general, a widget should include the following:
- a name — this can simply state the content or function
- variable content or a function for users
- if needed, minimal instructions how to use the widget
- a prominent link to the program Web site about the content or function
- a small "i" link to the widget's own home page
- a small EPA logo link to the EPA home page
Keep in mind:
- There is no one EPA appearance or color scheme, other than the standards described in this document. Work with the OWC to develop your look.
- Design the widget so no instructions are needed, or absolutely minimal instructions. For example: "Enter ZIP" is better than "Please enter your home or business ZIP Code here:" In most cases, no instructions should be needed.
- Important: Provide a clear link to the EPA program page related to the widget's information or function. Use the destination page's title as the link text (e.g.,Earth Day).
- Important: Create a 1-pixel contrasting line around the widget body, so the widget can appear distinct even if the user's page is the identical color. Embed a line in the graphic, or use an iFrame border of 1.
- Important: Put the rectangular EPA logo (not the round seal) in the bottom left corner of the widget. Link it to http://www.epa.gov. Keep the logo unobtrusive by making its color a little lighter or darker than the main widget background. (Avoid vivid, distracting contrasts or colors such as hot pink).
- Important: Create a page on epa.gov about the widget itself. This is where you post the widget, any variations such as different sizes, instructions or links how to get or add the widget to a Web page, and similar related information. Create the widget's own home page using an obvious, guessable URL, for example, epa.gov/programname/widgets
- Important: Link to your widget page from an italic lowercase letter "i" (for "information"), at the bottom right of the widget. The "i" is about 7px wide by 10px high.
- Different sizes of the same widget should use a similar design, but scaled appropriately. They may be of different colors.
Track whatever usage statistics you have access to so that you can measure and determine how your widget is being used. At EPA we don't track the Web activities of individual users, so we can't assess exact usage per person.
Keeping track of your widget activity lets you determine how much the widget is being used so you can:
- report the widget's usefulness over time
- assess the effectiveness of marketing the widget
- show your managers their investment in the widget is justified
- know when you reach saturation (if activity levels off)
- know when the widget stops being useful (if activity falls)
For widgets distributed using EPA HTML pages and iFrame, the Agency's basic Web statistics pages can provide useful if limited metrics. These are found on pages with a URL format of
(insert your own TSSMS account name, month, and year). Note that the TSSMS name is lowercase, while the month name is capitalized. For example,
Taking a widget down will leave a hole on Web pages where it was installed. Therefore, most widgets have an indefinite life. However, a widget could have a short lifespan for two reasons:
- you planned for a short lifespan
- unforeseen circumstances require to take it down
For a pre-planned short-term widget: On the widget's page, be clear that it will be live only from X date to Y date, after which it will go offline. While it is possible this might discourage casual users from adding the widget, remember, you will have a good reason for a short-term widget and your target users will understand your reasons.
For unforeseen circumstances: If you can, replace the widget content with a simple, clear announcement that the widget is offline or discontinued, giving the reason. Include a link to a page with relevant information. State that we regret the inconvenience.
Unless you intentionally planned and got approval from OWC to post a short-term widget, please do not take down a widget. If you must take it down please notify your content coordinator and OWC.
- Ethics (Office of General Counsel Web site) Intranet
- Standards of Ethical Conduct for Employees of the Executive Branch, 5 C.F.R. Part 2635
- Federal conflict of interest statutes at Title 18 of the United States Code
- Hatch Act as implemented by 5 C.F.R. Part 734
- External site links Web Standard
- Writing Style Web Standard
- Representing EPA Online Using Social Media
- Social Media, Web-Based Interactive Technologies, and the Paperwork Reduction Act (PDF) (7 pp, 83K): OMB's memorandum on how and when to apply PRA to social media
- The Web Guide is the authoritative source for Web sites and applications at EPA.
- The Social Media @ EPA blog provides answers to questions about social media at EPA.
- The Information Collection Request Center Intranetdescribes information collection requirements imposed on the public by the EPA.
- Special Terms of Service Agreements have been negotiated with various social media sites that resolve the legal issues with the standard Terms of Service (TOS) users have to agree to when setting up an account.