ข้อมูลอ้างอิงHTML

HTML โดยตัวอักษร HTML ตามหมวดหมู่ รองรับ HTML Browser แอตทริบิวต์ HTML HTML Global Attributes เหตุการณ์ HTML HTML สี HTML Canvas HTML เสียง/วิดีโอ ชุดอักขระ HTML HTML Doctypes การเข้ารหัส URL HTML รหัสภาษา HTML รหัสประเทศ HTML ข้อความ HTTP วิธี HTTP ตัวแปลง PX เป็น EM แป้นพิมพ์ลัด


HTML <menitem> ประเภทแอตทริบิวต์

❮ แท็ก HTML <menuitem>

ตัวอย่าง

<menuitem> องค์ประกอบประเภท "คำสั่ง":

<menu>
<menuitem type="command" label="Save" onclick="save()">Save</menuitem>
</menu>

ความหมายและการใช้งาน

แอตทริบิวต์ type ระบุประเภทของคำสั่ง/รายการเมนู


รองรับเบราว์เซอร์

ตัวเลขในตารางระบุเบราว์เซอร์รุ่นแรกที่สนับสนุนแอตทริบิวต์อย่างเต็มที่

Attribute
type Not supported Not supported Not supported Not supported Not supported

ไวยากรณ์

<menuitem type="command|checkbox|radio">

ค่าแอตทริบิวต์

Value Description
command Default. Specifies a normal command with an action
checkbox Specifies a command that can be toggled using a checkbox
radio Specifies a command that can be toggled using a radio button

❮ แท็ก HTML <menuitem>