Skip to content

Commit 4114eff

Browse files
PiusNyakoojoyyx990803
authored andcommitted
Update App.vue header (vuejs#122)
The <header> element specifies a header for a document or section. The <nav> element defines a set of navigation links. These elements are more meaningful to screen readers and other devices and improve the accessibility of a site.
1 parent b04ea0c commit 4114eff

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

src/App.vue

+4-4
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
<template>
22
<div id="app">
3-
<div class="header">
4-
<div class="inner">
3+
<header class="header">
4+
<nav class="inner">
55
<router-link to="/" exact>
66
<img class="logo" src="~public/logo-48.png" alt="logo">
77
</router-link>
@@ -13,8 +13,8 @@
1313
<a class="github" href="https://github.com/vuejs/vue-hackernews-2.0" target="_blank">
1414
Built with Vue.js
1515
</a>
16-
</div>
17-
</div>
16+
</nav>
17+
</header>
1818
<transition name="fade" mode="out-in">
1919
<router-view></router-view>
2020
</transition>

0 commit comments

Comments
 (0)