Title: Admin Tabs Semantic Improvements in 5.2
Author: Jb Audras
Published: April 2, 2019
Last modified: July 18, 2019

---

 [  ](https://profiles.wordpress.org/audrasjb/) [Jb Audras](https://profiles.wordpress.org/audrasjb/)
12:36 pm _on_ April 2, 2019     
Tags: [5.2 ( 37 )](https://make.wordpress.org/core/tag/5-2/),
[accessibility ( 59 )](https://make.wordpress.org/core/tag/accessibility/), [dev-notes ( 650 )](https://make.wordpress.org/core/tag/dev-notes/)

# Admin Tabs Semantic Improvements in 5.2

Some tabs in the WordPress Adminadmin (and super admin) aren’t really ARIA tabs —
they’re actually links wrapped in `h2` headings and styled to look like ARIA tabs.

But since they’re just navigation menus, WordPress 5.2 changes their markup accordingly.
That way, assistive technologies will reactReact React is a JavaScript library that
makes it easy to reason about, construct, and maintain stateless and stateful user
interfaces. [https://reactjs.org](https://reactjs.org/) to them correctly.

With [#43398](https://core.trac.wordpress.org/ticket/43398), WordPress 5.2 includes
the following changes:

 * changes the wrapping `<h2>` to a `<nav>` element. It’s worth remembering that`
   <nav>` elements also define ARIA landmarks.
 * adds an `aria-label` to the `<nav>` elements so they can be distinguished from
   other `<nav>` elements in the page
 * adjusts the headings level in the Credits page

Example of former markup in the `about.php` screen:

    ```notranslate
    <h2 class="nav-tab-wrapper wp-clearfix">
    	<a href="about.php" class="nav-tab nav-tab-active">What’s New</a>
    	<a href="credits.php" class="nav-tab">Credits</a>
    	<a href="freedoms.php" class="nav-tab">Freedoms</a>
    	<a href="freedoms.php?privacy-notice" class="nav-tab">Privacy</a>
    </h2>
    ```

New markup for this screen:

    ```notranslate
    <nav class="nav-tab-wrapper wp-clearfix" aria-label="Secondary menu">
    	<a href="about.php" class="nav-tab nav-tab-active">What’s New</a>
    	<a href="credits.php" class="nav-tab">Credits</a>
    	<a href="freedoms.php" class="nav-tab">Freedoms</a>
    	<a href="freedoms.php?privacy-notice" class="nav-tab">Privacy</a>
    </nav>
    ```

If your pluginPlugin A plugin is a piece of software containing a group of functions
that can be added to a WordPress website. They can extend functionality or add new
features to your WordPress websites. WordPress plugins are written in the PHP programming
language and integrate seamlessly with WordPress. These can be free in the WordPress.
org Plugin Directory [https://wordpress.org/plugins/](https://wordpress.org/plugins/)
or can be cost-based plugin from a third-party. or theme uses the same markup as
CoreCore Core is the set of software required to run WordPress. The Core Development
Team builds WordPress., you’ll want to update it for consistency and to avoid future
CSSCSS Cascading Style Sheets. incompatibilities.

_Please note:_ if your plugin or theme uses items that actually toggle the visibility
of in-page content instead of linking to another page, then they are not navigation
items. You should not use ARIA tabs nor `<nav>` element in that case.

[#5-2](https://make.wordpress.org/core/tag/5-2/), [#accessibility](https://make.wordpress.org/core/tag/accessibility/),
[#dev-notes](https://make.wordpress.org/core/tag/dev-notes/)

### Share this:

 * [  Threads ](https://make.wordpress.org/core/2019/04/02/admin-tabs-semantic-improvements-in-5-2/?share=threads)
 * [  Mastodon ](https://make.wordpress.org/core/2019/04/02/admin-tabs-semantic-improvements-in-5-2/?share=mastodon)
 * [  Bluesky ](https://make.wordpress.org/core/2019/04/02/admin-tabs-semantic-improvements-in-5-2/?share=bluesky)
 * [  X ](https://make.wordpress.org/core/2019/04/02/admin-tabs-semantic-improvements-in-5-2/?share=x)
 * [  Facebook ](https://make.wordpress.org/core/2019/04/02/admin-tabs-semantic-improvements-in-5-2/?share=facebook)
 * [  LinkedIn ](https://make.wordpress.org/core/2019/04/02/admin-tabs-semantic-improvements-in-5-2/?share=linkedin)

# Post navigation

[← The Block Registration RFC and the Gutenberg RFC process](https://make.wordpress.org/core/2019/04/01/the-block-registration-rfc-and-the-gutenberg-rfc-process/)

[Editor Chat Agenda: April 3rd →](https://make.wordpress.org/core/2019/04/02/editor-chat-agenda-april-3rd/)