Overview
A header helps users identify where they are and provides a quick, organized way to reach the main sections of a website.
When to use
Most websites require header navigation. Most websites require some form of navigation to help users find the information they need. While a horizontal navigation bar is just one option for navigation design, it is one of the most visible and familiar ways of helping users navigate a site.
Formatting
Anatomy
Enterprise Header
The Enterprise Header is a collection of three components– the official banner, the navigation bar, and the navigation menu.
- Official Banner – You should use the banner to identify your site as an official Pennsylvania government site.
- Navigation Bar– Includes the Commonwealth of Pennsylvania logo and a right panel containing a language selection button and search.
- Navigation Menu- Series of navigation labels that provide short descriptors to inform the user what type of content they will find in the menu or link.
Official Banner
Banners identify official websites of government organizations in Commonwealth of Pennsylvania. They also help assure visitors that a website is official and secure.
- Pennsylvania Flag
- Banner Header: Displays message from the Commonwealth of Pennsylvania.
- Banner Action: Displays modal explaining how to identify an official Commonwealth of Pennsylvania government website.
Navigation Bar
- Commonwealth of Pennsylvania Logo: Links to the PA.gov homepage and is a required piece of the header. The logo should not be altered.
- Language Selector: Allow users to select their preferred language when visiting a website in two languages.
- Search bar: supports global search for PA.gov.
Navigation Menu
- Navigation Link: links to page.
- Navigation Dropdown: opens dropdown menu for navigation label
Behavior
The header spans the full width of the viewport and is the topmost element in the browser window. Header elements are persistent throughout the online experience.
- Header supports a maximum of 8 nav labels.
- Supports search and language selection.
The header is fully responsive and changes what is displayed based on the browser size. At Small and X-Small breakpoints, a hamburger menu will appear to house all navigation labels.
Mobile
All navigation labels will collapse into a right panel hamburger menu on any browser size below 992px wide.