HTML5 새 요소
HTML5는 HTML 4.01 버전의 새로운 업그레이드로, 많은 새로운 기능, 고급 기능, 더 나은 페이지 보기 및 증가하는 기술적 요구에 부응하는 기타 여러 개선 사항을 포함하고 있습니다. HTML5에서 가장 많이 사용되고 원하는 요소는
HTML5의 새로운 요소 상위 10개
HTML5는 문서 레이아웃을 향상시키는 새로운 요소를 제공합니다.
1.
<기사> 요소는 문서, 섹션 또는 웹 사이트의 별도 구조를 포함하고 널리 배포되거나 사용 가능하도록 권장되는 페이지의 일부를 지정합니다. 이는 그룹 게시물, 저널 또는 일간 보고서, 온라인 뉴스레터 제출, 고객이 보낸 발언 또는 기타 물질이 없는 대상일 수 있습니다.
예:
<!DOCTYPE html> <html> <head> <title>Article Element</title> </head> <body> <article> <h2>EDUCBA</h2> <p>EDUCBA (Corporate Bridge Consultancy Pvt Ltd) is a leading global provider of skill based education addressing the needs 500,000+ members across 40+ Countries. </p> </article> </body> </html>
출력:
- 위 코드를 확장자가 .html인 파일로 저장하세요.
- 브라우저에서 html 파일을 실행하면 아래 이미지와 같은 결과가 나옵니다.
2.
<그림> 요소는 분류, 지도, 이미지, 코드 기사 등과 같은 개별 콘텐츠를 나타냅니다.
예:
<!DOCTYPE html> <html> <head> <title>Figure Element</title> </head> <body> <p> EDUCBA is a leading global provider of skill based education addressing the needs 500,000+ members across 40+ Countries. </p> <figure> <img src="educba.png"/> </figure> </body> </html>
출력:
위 코드는 아래 이미지와 같은 출력을 생성합니다.
3. <그림캡션>
예:
<!DOCTYPE html> <html> <head> <title>Figure Caption Element</title> </head> <body> <p> EDUCBA is a leading global provider of skill based education addressing the needs 500,000+ members across 40+ Countries. </p> <figure> <img src="educba.png"/> <figcaption>EDUCBA (Corporate Bridge Consultancy Pvt Ltd)</figcaption> </figure> </body> </html>
출력:
위 코드는 아래 이미지와 같이 결과를 표시합니다.
4. <헤더>
<헤더> 요소는 문서의 헤더나 페이지 섹션을 지정합니다. 단일 문서에서 두 개 이상의 헤더를 정의할 수 있습니다.
예:
<!DOCTYPE html> <html> <head> <title>Header Element</title> </head> <body> <article> <header> <h1>Header One</h1> <h2>Header Two</h2> <h3>Header Three</h3> </header> <p>The content of the document goes here...</p> </article> </body> </html>
출력:
위 코드는 아래 이미지와 같이 결과를 표시합니다.
5. <바닥글>
<바닥글> 요소는 작성자 정보, 저작권 정보, 연락처, 관련 문서 링크, 사이트맵 등과 같은 정보를 지정합니다.
예:
<!DOCTYPE html> <html> <head> <title>Footer Element</title> </head> <body> <footer> <p>Copyright © 2019 www.educba.com</p> <p>Contact: <a href="mailto:[email protected]">[email protected]</a> </footer> </body> </html>
출력:
위 코드는 아래 이미지와 같이 결과를 표시합니다.
6.
<메인> 요소는 문서의 주요 정보, 즉 중요한 정보를 표시하는 데 사용됩니다.
예:
<!DOCTYPE html> <html> <head> <title>Main Element</title> </head> <body> <header> <p>Header information</> </header> <main> <p>Main Information</p> <article> <h2>EDUCBA</h2> <p>EDUCBA is a leading global provider of skill based education...</p> </article> </main> <footer> <p>Footer Information</> </footer> </body> </html>
출력:
위 코드는 아래 이미지와 같은 출력을 생성합니다.
7.
<마크> 요소는 사용자를 문서의 특정 텍스트로 끌어들이는 배경색으로 텍스트를 강조하거나 표시합니다.
예:
<!DOCTYPE html> <html> <head> <title>Mark Element</title> </head> <body> <article> <p><mark>EDUCBA</mark> is a leading global provider of skill based education addressing the needs 500,000+ members across 40+ Countries. </p> </article> </body> </html>
출력:
위 코드는 아래 이미지와 같이 결과를 표시합니다.
8.
예:
<!DOCTYPE html> <html> <head> <title>Nav Element</title> </head> <body> <header> <nav> <a href="#">HTML</a> | <a href="#">CSS</a> | <a href="#">JAVA</a> | <a href="#">PHP</a> | <a href="#">PYTHON</a> </nav> </header> </body> </html>
출력:
위 코드는 아래 이미지와 같은 출력을 생성합니다.
9. <섹션>
<섹션> 요소는 문서의 독립형 섹션 또는 특정 영역을 정의합니다.
예:
<!DOCTYPE html> <html> <head> <title>Section Element</title> </head> <body> <article> <h2> Main Article </h2> <p>Content of the main header will be displayed here...</p> <section> <h2>Section One</h2> <p>Content of the first section will be displayed...</p> </section> <section> <h2>Section Two</h2> <p>Content of the second section will be displayed...</p> </section> </article> </body> </html>
출력:
위 코드는 아래 이미지와 같이 결과를 표시합니다.
10.
The
Example:
<!DOCTYPE html> <html> <head> <title>Summary Element</title> </head> <body> <details> <summary> EDUCBA - Corporate Bridge Consultancy Pvt Ltd </summary> <p>It is a leading global provider of skill based education addressing the needs 500,000+ members across 40+ Countries.</p> </details> </body> </html>
Output:
When you run the above code, it will display the result as shown below,
As shown in the image, click on the heading, and it will display the hidden text shown below the image,
Conclusion
So far, we have seen how new HTML5 elements are useful for various website creation tasks. These new elements read the document in a more accurate & standard way and develop more complex and efficient web apps. The new HTML5 elements give some additional extra features to generate interactive websites.
위 내용은 HTML5 새 요소의 상세 내용입니다. 자세한 내용은 PHP 중국어 웹사이트의 기타 관련 기사를 참조하세요!

핫 AI 도구

Undresser.AI Undress
사실적인 누드 사진을 만들기 위한 AI 기반 앱

AI Clothes Remover
사진에서 옷을 제거하는 온라인 AI 도구입니다.

Undress AI Tool
무료로 이미지를 벗다

Clothoff.io
AI 옷 제거제

Video Face Swap
완전히 무료인 AI 얼굴 교환 도구를 사용하여 모든 비디오의 얼굴을 쉽게 바꾸세요!

인기 기사

뜨거운 도구

메모장++7.3.1
사용하기 쉬운 무료 코드 편집기

SublimeText3 중국어 버전
중국어 버전, 사용하기 매우 쉽습니다.

스튜디오 13.0.1 보내기
강력한 PHP 통합 개발 환경

드림위버 CS6
시각적 웹 개발 도구

SublimeText3 Mac 버전
신 수준의 코드 편집 소프트웨어(SublimeText3)

HTML의 테이블 테두리 안내. 여기에서는 HTML의 테이블 테두리 예제를 사용하여 테이블 테두리를 정의하는 여러 가지 방법을 논의합니다.

HTML의 Nested Table에 대한 안내입니다. 여기에서는 각 예와 함께 테이블 내에 테이블을 만드는 방법을 설명합니다.

HTML 여백-왼쪽 안내. 여기에서는 HTML margin-left에 대한 간략한 개요와 코드 구현과 함께 예제를 논의합니다.

HTML 테이블 레이아웃 안내. 여기에서는 HTML 테이블 레이아웃의 값에 대해 예제 및 출력 n 세부 사항과 함께 논의합니다.

HTML 입력 자리 표시자 안내. 여기서는 코드 및 출력과 함께 HTML 입력 자리 표시자의 예를 논의합니다.

HTML 순서 목록에 대한 안내입니다. 여기서는 HTML Ordered 목록 및 유형에 대한 소개와 각각의 예에 대해서도 설명합니다.

HTML onclick 버튼에 대한 안내입니다. 여기에서는 각각의 소개, 작업, 예제 및 다양한 이벤트의 onclick 이벤트에 대해 설명합니다.

HTML에서 텍스트 이동 안내. 여기서는 Marquee 태그가 구문과 함께 작동하는 방식과 구현할 예제에 대해 소개합니다.
