freeCodeCamp/curriculum/challenges/german/01-responsive-web-design/applied-accessibility/make-screen-reader-navigati...

3.3 KiB

id title challengeType videoUrl forumTopicId dashedName
587d7788367417b2b2512aa3 Vereinfache Screenreader-Navigation mit der Grenzrolle eines Footer-Elements 0 https://scrimba.com/c/crVrDh8 301022 make-screen-reader-navigation-easier-with-the-footer-landmark

--description--

Ähnlich wie header und nav, verfügt das Element footer über eine Grenzrolle, mit der Hilfsmittel schnell dorthin navigieren können. In erster Linie wird das Footer-Tag für urheberrechtliche Informationen oder weiterführende Links verwendet, die normalerweise am Ende einer Seite zu finden sind.

--instructions--

Die Übungsseite von Camper Cat macht gute Fortschritte. Ändere das div-Element, mit dem er seine Copyright-Information am Ende der Seite einbindet, in das neue footer-Element.

--hints--

Dein Code sollte ein footer-Tag enthalten.

assert($('footer').length == 1);

Dein Code sollte keine div-Tags enthalten.

assert($('div').length == 0);

Dein Code sollte ein öffnendes und schließendes footer-Tag enthalten.

assert(code.match(/<footer>\s*&copy; 2018 Camper Cat\s*<\/footer>/g));

--seed--

--seed-contents--

<body>
  <header>
    <h1>Training</h1>
    <nav>
      <ul>
        <li><a href="#stealth">Stealth &amp; Agility</a></li>
        <li><a href="#combat">Combat</a></li>
        <li><a href="#weapons">Weapons</a></li>
      </ul>
    </nav>
  </header>
  <main>
    <section id="stealth">
      <h2>Stealth &amp; Agility Training</h2>
      <article><h3>Climb foliage quickly using a minimum spanning tree approach</h3></article>
      <article><h3>No training is NP-complete without parkour</h3></article>
    </section>
    <section id="combat">
      <h2>Combat Training</h2>
      <article><h3>Dispatch multiple enemies with multithreaded tactics</h3></article>
      <article><h3>Goodbye world: 5 proven ways to knock out an opponent</h3></article>
    </section>
    <section id="weapons">
      <h2>Weapons Training</h2>
      <article><h3>Swords: the best tool to literally divide and conquer</h3></article>
      <article><h3>Breadth-first or depth-first in multi-weapon training?</h3></article>
    </section>
  </main>


  <div>&copy; 2018 Camper Cat</div>


</body>

--solutions--

<body>
  <header>
    <h1>Training</h1>
    <nav>
      <ul>
        <li><a href="#stealth">Stealth &amp; Agility</a></li>
        <li><a href="#combat">Combat</a></li>
        <li><a href="#weapons">Weapons</a></li>
      </ul>
    </nav>
  </header>
  <main>
    <section id="stealth">
      <h2>Stealth &amp; Agility Training</h2>
      <article><h3>Climb foliage quickly using a minimum spanning tree approach</h3></article>
      <article><h3>No training is NP-complete without parkour</h3></article>
    </section>
    <section id="combat">
      <h2>Combat Training</h2>
      <article><h3>Dispatch multiple enemies with multithreaded tactics</h3></article>
      <article><h3>Goodbye world: 5 proven ways to knock out an opponent</h3></article>
    </section>
    <section id="weapons">
      <h2>Weapons Training</h2>
      <article><h3>Swords: the best tool to literally divide and conquer</h3></article>
      <article><h3>Breadth-first or depth-first in multi-weapon training?</h3></article>
    </section>
  </main>


  <footer>&copy; 2018 Camper Cat</footer>


</body>