๐Ÿ‘ฉ๐Ÿปโ€๐Ÿ’ป ํ”„๋กœ๊ทธ๋ž˜๋ฐ ์–ธ์–ด/HTML

[HTML] aside์™€ ํ•จ๊ป˜ ์‚ฌ์šฉํ•˜๋Š” article, section ํƒœ๊ทธ

yyezzzy 2024. 6. 10. 15:19

aside์™€ article์„ ํ•จ๊ป˜ ์‚ฌ์šฉํ•œ ์˜ˆ์ œ

<body>
  <article>
    <h1>Main Article Content</h1>
    <p>This is the main content of the article. It contains the primary information and details on the topic being discussed.</p>
  </article>

  <aside>
    <h2>Related Articles</h2>
    <ul>
      <li><a href="#">Related Article 1</a></li>
      <li><a href="#">Related Article 2</a></li>
      <li><a href="#">Related Article 3</a></li>
    </ul>
  </aside>
</body>

 


 

aside์™€ section์„ ํ•จ๊ป˜ ์‚ฌ์šฉํ•œ ์˜ˆ์ œ

<body>
  <section>
    <h1>Section Main Content</h1>
    <p>This is the main content of the section. It covers a specific part of the content that can be logically grouped together.</p>
  </section>

  <aside>
    <h2>Additional Information</h2>
    <p>This aside contains additional information related to the section above. It can include links, references, or other supplementary material.</p>
  </aside>
</body>

์„ค๋ช…

  1. aside์™€ article ์˜ˆ์ œ:
    • article ํƒœ๊ทธ๋Š” ๋…๋ฆฝ์ ์ธ ์ฝ˜ํ…์ธ  ๋ธ”๋ก์„ ๋‚˜ํƒ€๋‚ด๋ฉฐ, ์ฃผ๋กœ ๋ธ”๋กœ๊ทธ ํฌ์ŠคํŠธ, ๋‰ด์Šค ๊ธฐ์‚ฌ ๋“ฑ์˜ ์ฃผ์š” ์ฝ˜ํ…์ธ ๋ฅผ ๋‹ด์Šต๋‹ˆ๋‹ค.
    • aside ํƒœ๊ทธ๋Š” ์ด ์ฃผ ์ฝ˜ํ…์ธ ์™€ ๊ด€๋ จ๋œ ๋ณด์กฐ ์ •๋ณด๋ฅผ ์ œ๊ณตํ•ฉ๋‹ˆ๋‹ค. ์—ฌ๊ธฐ์„œ๋Š” ๊ด€๋ จ ๊ธฐ์‚ฌ ๋ชฉ๋ก์„ ํฌํ•จํ•˜๊ณ  ์žˆ์Šต๋‹ˆ๋‹ค.
  2. aside์™€ section ์˜ˆ์ œ:
    • section ํƒœ๊ทธ๋Š” ์ฝ˜ํ…์ธ ์˜ ๋…ผ๋ฆฌ์ ์ธ ๊ตฌ์—ญ์„ ๋‚˜ํƒ€๋‚ด๋ฉฐ, ๊ด€๋ จ๋œ ์ฝ˜ํ…์ธ ๋ฅผ ๊ทธ๋ฃนํ™”ํ•˜๋Š” ๋ฐ ์‚ฌ์šฉ๋ฉ๋‹ˆ๋‹ค.
    • aside ํƒœ๊ทธ๋Š” ์ด ๊ตฌ์—ญ๊ณผ ๊ด€๋ จ๋œ ์ถ”๊ฐ€ ์ •๋ณด๋ฅผ ์ œ๊ณตํ•ฉ๋‹ˆ๋‹ค. ์—ฌ๊ธฐ์„œ๋Š” ๊ด€๋ จ ์ •๋ณด๋ฅผ ํฌํ•จํ•˜๊ณ  ์žˆ์Šต๋‹ˆ๋‹ค.