HTML <a> ประเภทแอตทริบิวต์
ตัวอย่าง
แอตทริบิวต์ type ระบุประเภทสื่อของเอกสารที่เชื่อมโยง:
<a href="https://www.w3schools.com" type="text/html">W3Schools</a>
ความหมายและการใช้งาน
แอตทริบิวต์type
ระบุประเภทสื่ออินเทอร์เน็ต (เดิมเรียกว่าประเภท MIME) ของเอกสารที่เชื่อมโยง
คุณลักษณะนี้จะใช้เฉพาะเมื่อ มีการ href
ตั้งค่าแอตทริบิวต์
หมายเหตุ:คุณลักษณะนี้เป็นเพียงคำแนะนำเท่านั้น
รองรับเบราว์เซอร์
Attribute | |||||
---|---|---|---|---|---|
type | Yes | Yes | Yes | Yes | Yes |
ไวยากรณ์
<a type="media_type">
ค่าแอตทริบิวต์
Value | Description |
---|---|
media_type | The Internet media type of the linked document. Look at IANA Media Types for a complete list of standard media types. |
❮ แท็ก HTML <a>