

Using the target attribute in the anchor tag content authors can forcefully let the link open in a new browser window.

In certain cases the content authors let the link open in a new browser window or a new tab.
#INPAGE LINK CODE#
Code Exampleįacebook Links opens in new tab or new window Provide a hyperlink, use the URL in the href that target to the different website. Ensure that the target url is provided accurately in the href attribute. Since user has the option to open the link in new browser window or new tab with right click or application key using the target attribute is not an ideal way. In many cases content authors forcefully let the users open the links that target to new website in a new browser window using the target attribute. People with cognitive disabilities may expect similar layout unless an alert is provided for them that the link targets to a different website. These type of links navigate away from the current website to a different one. Instead of calling a html page in the href, content authors should call a url. Links targeting to other websites looks similar to the links that target to other pages of the same website. Code exampleĬontact Us Links targeting to other websites Provide a clear description of the target of the link. Provide an anchor tag with the href attribute pointing to the source of the file the browser has to open. Ensure that the href points the accurate location where the file is including the folders and subfolders it may contain. Take care that the link text describes the target clearly to the user without the ambiguous descriptions. It is recommended not to use target attribute forcing the user to open the link in a new browser window or new tab when it is navigating to same website but to a different page. One HTML page is linked to another with the href attribute by calling the page in it. No matter how big the website is each page should be linked to other pages directly or with minimum clicks.

A simple website may have a single page where as a complex website may have thousands of pages. The number of WebPages in a website may differ from one website to another. This is the target of the bookmark link Links targeting to other pages of same websiteĪny website consists of set of web pages. In the hyperlink href attribute call this id as shown in the code example. Provide an id to the target of the page where the focus needs to be shifted. For other bypassing mechanisms read 2.4.1 bypass blocks. These kind of hyperlinks can be useful for allowing the users to skip the repeated navigation portion of every webpage on a website using a skip navigation or skip to main content link. Users who have limited hand movements or those who cannot scroll the mouse can also benefit with these links.

Bookmark links, Links targeting to other pages of same website, Links targeting to another website, Links opening in a new tab or new browser window, Links targeting to non-HTML pages, Links associated with images or icons, Links target nowhere) target to that specific section of the page below. For example hitting enter key on the above links (i.e. Links opening in a new tab or new browser windowĪ bookmark link announced by screen readers as a inpage link or a internal link or a same page link is used on a lengthy webpage in order to allow the keyboard only and screen reader users to navigate directly to various sections of the page.Links targeting to other pages of same website.
#INPAGE LINK HOW TO#
Let us understand the types of links that are commonly seen on a webpage and how to code them for accessibility. Title attribute That shows a tool tip with additional information of the target. Target attribute That allows the hyperlink to open in a new tab or new browser window. Link description Text that defines the target of the hyperlink. href attribute That defines the target of the hyperlink. A simple hyper link consist of tag that provide the hyperlink element on the webpage. An accessible hyperlink informs the user where it is targeting, takes the user to the accurate page without a broken link.Ĭontent authors should know the reference of the anchor to define the link description. A hyperlink is a HTML element that connects one webpage to another, one website to another or allows the user to jump from one portion of the page to another portion of the page.
