Computer >> บทช่วยสอนคอมพิวเตอร์ >  >> การเขียนโปรแกรม >> JavaScript

HTML5 New Tags (แท็กใหม่ใน HTML5)

HTML5 เป็น major revision ถัดไปของ HTML standard แทนที่ HTML 4.01, XHTML 1.0, XHTML 1.1 มาตรฐานสำหรับโครงสร้างและนำเสนอเนื้อหาบน World Wide Web

HTML5 เป็นความร่วมมือระหว่าง W3C และ WHATWG

Introduce แท็กใหม่ช่วย developers:

Tags (Elements)Description
<article>Independent content piece เช่น blog entry, newspaper article
<aside>Content ที่เกี่ยวข้องน้อยกับหน้าหลัก
<audio>Define audio file
<canvas>Render dynamic bitmap graphics เช่น graphs, games
<command>Command ที่ user invoke ได้
<datalist>ร่วมกับ list attribute สำหรับ input ทำ comboboxes
<details>Additional info/controls ที่ user ขอได้ on demand
<embed>External interactive content/plugin
<figure>Self-contained flow content referenced as single unit
<footer>Footer ของ section ข้อมูล author, copyright ฯลฯ
<header>Group of introductory/navigational aids
<hgroup>Header ของ section
<keygen>Key pair generation control
<mark>Highlighted text สำหรับ reference
<meter>Measurement เช่น disk usage
<nav>Section สำหรับ navigation
<output>Output จาก calculation ผ่าน scripting
<progress>Completion ของ task เช่น downloading
<ruby>ร่วมกับ <rt> <rp> สำหรับ ruby annotations
<section>Generic document/application section
<time>Date/time
<video>Define video file
<wbr>Line break opportunity

อ้างอิงรายการ HTML tags ครบถ้วน