HTML5 <video> element ใช้สำหรับแสดงวิดีโอหรือภาพยนต์บนเว็บไซต์ โดยที่ไม่ต้องพึ่งปลั๊กอิน All <video> Attributes Attribute Value Description audio muted Defining the default state of the the audio. Currently, only “muted” is allowed autoplay autoplay If present, then the video will start playing as soon as it is ready controls controls If present, controls will be displayed, such as a play button …
[ อ่านต่อ... ]HTML5 <audio> element สำหรับเล่นไฟล์เสียง เสียงเพลงหรือเสียงอื่น ๆ ซึ่งไม่ต้องพึ่งปลั๊กอิน (เช่น Flash) บราวเซอร์ที่ Supported audio codecs: Chrome 3+ supports .ogg and .wav Firefox 3.5+ supports .ogg and .wav Opera 10.5+ supports .ogg and .wav Safari 4+ supports .mp3 and .wav All <audio> Attributes Attribute Value Description autoplay autoplay Specifies that the audio will start playing as soon as …
[ อ่านต่อ... ]
HTML5 <progress> element ใช้ระบุสถานะความคืบหน้าของงานที่ทำ เช่น แสดงเป็นแท่งความคืบหน้าของการดาวน์โหลดข้อมูล เป็นต้น ตัวอย่างการแสดงผล Attributes Attributes ที่ต่อท้ายด้วย New คือ Attributes ที่เพิ่มเข้ามาใหม่ใน HTML5 คือ Attribute Value Description max New floating point number Specifies how much work the task requires in total value New floating point number Specifies how much of the task has been completed ดูข้อมูลเพิ่มเติม http://dev.w3.org/html5/spec/Overview.html#the-progress-element Share
[ อ่านต่อ... ]HTML5 nav element <nav> สำหรับระบุส่วนของเมนูของเว็บ ซึ่งอาจจะอยู่ในหัวของเว็บไซต์หรือท้ายของเว็บไซต์ก็ได้ HTML5 nav element <nav> นี้สนับสนุน HTML5 Attributes ข้อมูลเพิ่มเติม http://dev.w3.org/html5/spec/Overview.html#the-nav-element Share
[ อ่านต่อ... ]
HTML5 meter element <meter> ใช้สำหรับระบุสเกล โดยค่าที่แสดงจะแสดงออกมาในรูปของสัดส่วนของสเกล ตัวอย่างเช่น ให้แสดงสัดส่วนในการใช้พื้นที่ใน hard disk เป็นต้น ข้อควรคำนึงไม่ควรใช้ <meter> ในการระบุเกี่ยวกับเรื่อง progress เช่น ควมคืบหน้าของงาน ก็ให้ใช้ <progress> element ตัวอย่างการแสดงผล Attributes Attributes ที่ต่อท้ายด้วย New คือ Attributes ที่เพิ่มเข้ามาใหม่ใน HTML5 คือ Attribute Value Description form New form_id Specifies one or more forms the <meter> element belongs to high New floating point number Specifies the range that …
[ อ่านต่อ... ]