Skip to content

Instantly share code, notes, and snippets.

@rushijagani
Created September 16, 2020 10:26
Show Gist options
  • Save rushijagani/ea7261adff48e14f6959318bed4ce169 to your computer and use it in GitHub Desktop.
Save rushijagani/ea7261adff48e14f6959318bed4ce169 to your computer and use it in GitHub Desktop.
Simple Header HTML markup with ARIA(Accessible Rich Internet Applications)
<header class="header-group" role="banner">
<div class="header-inner">
<div class="header-titles-wrapper">
<div class="header-titles">
<!-- .site-title or .site-logo -->
<h1 class="site-title">
<a href="#">Site Title</a>
</h1>
<!-- .site-description -->
<div class="site-description">Site Description</div>
</div>
<!-- .header-titles -->
</div>
<!-- .header-titles-wrapper -->
<div class="header-navigation-wrapper">
<nav
class="primary-menu-wrapper"
aria-label="Horizontal"
role="navigation"
>
<ul class="primary-menu">
<li>
<a>Blogs</a>
</li>
</ul>
</nav>
<!-- .primary-menu-wrapper -->
</div>
<!-- .header-navigation-wrapper -->
</div>
<!-- .header-inner -->
</header>
<!-- #site-header -->
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment