Computer >> 컴퓨터 >  >> 프로그램 작성 >> JavaScript

과 같은 새로운 HTML5 요소는 쓸모가 없나요?

<시간/>

요소는 스크린리더에게도 유용하며 시각 장애가 있는 사용자가 웹 페이지의 내용을 읽는 데 도움이 됩니다. 이는 eBook 독자에게도 유용합니다.

두 요소를 모두 사용하는 방법을 살펴보겠습니다.

<섹션>

<!DOCTYPE html>
<html>
   <head>
      <title>HTML Section Tag</title>
   </head>
   <body>
      <section>
         <h1>Java</h1>
         <h3>Inheritance</h3>
         <p>Inheritance defines the relationship between superclass and subclass.</p>
      </section>
   </body>
</html>

<기사>

<!DOCTYPE html>
<html>
   <body>
      <main>
         <h1>Learning</h1>
         <p>Learn to gain experience and try to share your knowledge with others.</p>
         <article>
            <h3>Web Development Tutorials</h3>
            <p>Consist of CSS, HTML, and PHP tutorials for 2nd Semester exams.</p>
         </article>
         <article>
            <h3>Academic Tutorials</h3>
            <p>Consist of Computer Fundamental, Computer Network tutorials for
            1st Semester exams.</p>
         </article>
      </main>
   </body>
</html>