17. Page & Frame Titles
Write page and frame titles that give the purpose of the page or the frame
For each frame and for each primary media file (e.g. HTML page, Flash movie, PDF document) provide a title that:
- Reflects the purpose or topic of the frame or file AND
- Differentiates the frame or file from the others in your site
Rationale
Well-written titles allow screen reader users to move between windows, documents or frames with confidence.
Additional Benefits: Search engines often use titles when displaying search results. Many users use titles to select between open windows in common operating systems.
General Techniques
Write titles that convey the purpose of the item and that are as unique as possible within the context of your site. For example, as of January 2009, Google wisely provides the search term(s) as the first part of the title, followed the more general information, “Google Search”.
HTML Techniques
- Give each HTML page one
title
element that reflects the purpose or the topic of the page:<title>All about Elephants</title>
- Do not include any markup between the opening and closing
<title>
tags. - Give each
frame
oriframe
atitle
attribute that reflects the purpose of the frame:<frame src=“elephants.html” name=“content” title=“Main Content”>
Android Applications
The screen title should be unique and provide information to orient the user to screen. In Android applications the title of the screen is provided setting the android:Label
on the Activity
class or using the setTitle
method.
iOS Applications
The screen title should be unique and provide information to orient the user to screen.
If the application uses the iOS navigation bar, this is accessible by default. The default accessibility trait for a navigation bar is User Interaction Enabled. The navigation bar title should be set to the screen title and should change to the new level’s title when the screen changes.
PDF in Acrobat
In a PDF document, the title should represent the content of the PDF file. The document title is defined in the document properties.
In Acrobat, go to Document Properties, and enter a title. In Acrobat 9 on Windows, this is found under File > Properties (Control D) > Description Tab > Title Field.
To have the document title display in the title bar of the user agent, set the show drop down to Document Title in the Initial View tab.
Word
Set the document properties to identify the title and subject of the document using the Word document settings.
To set the document properties:
- Go to the Office button
- Select Prepare - Properties
- Set the document author, title, subject and keywords
PowerPoint
Set the PowerPoint document properties to identify the title and subject of the document.
To set the document properties:
- Go to the Office button
- Select Prepare - Properties
- Set the document author, title, subject and keywords
Testing HTML
Testing technique | Description |
---|---|
Tools | Use the FrameList favelet or use Web Accessibility Toolbar (WAT) > Frames > Frame Name/Title to display the frames and iFrames (if any). Make note of the title of the page from the title bar of the browser. |
Output | The FrameList favelet and the WAT function each list all frames together with their name, title and src attributes. You can click on the src link to see the frame page. |
Analysis | The title of each frame should suggest the purpose of the frame; the page title should be specific to the page and not generic for a set of pages. |
Testing Mobile Applications
Testing technique | Description |
---|---|
Tools | Observe the page or use the screen reader (VoiceOver on iOS and TalkBack on Android) to evaluate screen title. |
Review | Look in the navigation bar or the top of the application for the name. |
Analysis | Check that the page title is specific to the screen and not generic for a set of screens. |
Testing PDF in Acrobat
Testing technique | Description |
---|---|
Tools | Use the Acrobat File > Properties dialog > Description tab to verify that the proper title is entered, and that on the Initial View tab “Show” is set to “Document Title.” |
Output | The information will appear in the dialog, and the title should also appear in the Acrobat window title bar. |
Analysis | Make note of any variance from this guideline. |
Related Guidelines
508 Web § 1194.22
Frames shall be titled with text that facilitates frame identification and navigation.
WCAG 2.0 Level A – SC 2.4.2 Page Titled
Web pages have titles that describe topic or purpose. (Level A)