HTML <link> hrefแอตทริบิวต์
ตัวอย่าง
ลิงก์ไปยังสไตล์ชีตภายนอก:
<link rel="stylesheet" href="styles.css">
ความหมายและการใช้งาน
แอตทริบิวต์href
ระบุตำแหน่ง (URL) ของทรัพยากรภายนอก (ส่วนใหญ่มักจะเป็นไฟล์สไตล์ชีต)
รองรับเบราว์เซอร์
Attribute | |||||
---|---|---|---|---|---|
href | Yes | Yes | Yes | Yes | Yes |
ไวยากรณ์
<link href="URL">
ค่าแอตทริบิวต์
Value | Description |
---|---|
URL | The URL of the linked resource/document. Possible values:
|
❮ แท็ก HTML <link>