Перейти к основному содержимому
← 📄 HTML & the platform·Модуль A2 · Урок 5
ЗаданиеBuild a blog page. <main> with an <article> containing h1 'TypeScript' and p 'Main argument'. Inside the article, add an <aside> with h2 'See also' and p 'Other reading'.

<в сторону>: боковые панели, выноски, связанное

75 XP6 min
Теория

<aside> is for "related but not essential"

<main>
  <article>
    <h1>Why TypeScript wins</h1>
    <p>The main argument…</p>

    <aside>
      <h2>Related reading</h2>
      <ul>
        <li><a href="/posts/case-against-ts">The case against TS</a></li>
      </ul>
    </aside>
  </article>
</main>

<aside>
  <h2>About the author</h2>
  <p>…</p>
</aside>

Two valid placements:

  • Inside an article — content tangentially related to that specific article (a pull quote, related links, an author bio for THAT article).
  • At the body level (sibling of <main>) — a site-wide sidebar (recent posts, archive, ad slot, "About this site").

What <aside> is NOT

  • It is not "anything on the side of the page." If your sidebar contains primary navigation, use <nav>, not <aside>.
  • It is not for footnotes. Use <details> + <summary>, or just an inline <sup>.
  • It is not styling-only. If you don't have content the user could skip without losing meaning, use <div> instead.

Screen readers announce <aside> as "complementary landmark" — users with a sidebar that contains primary content (a common mistake) get told it's optional and skip it.

🔒

Зарегистрируйся чтобы кодить

Теория открыта всем. Интерактивный редактор, живой превью и проверка открываются с 7-дневным бесплатным trial — нужна карта, отмена в любое время.

Регистрация — бесплатный trial →

Первые 10 уроков в каждом треке — бесплатные. Карта не нужна.

← НазадСледующий урок →

Получай один совет по Python или веб-разработке — каждый день в почте

Коротко, без воды, без спама. Отписаться — в один клик.