1. ลิงก์แบบสั้น
<a href=
"url.htm"
>data of
this
url</a>
2. ลิงก์ที่มีคำอธิบาย
<a href=
"url.htm"
title=
"data page"
>data of
this
url</a>
3. ลิงก์ที่สั่งเปิดแฟ้มในแท็บใหม่
<a href=
"url.htm"
target=
"_blank"
>data of
this
url</a>
4. ลิงก์ที่เป็นสีน้ำเงิน
<a href=
"url.htm"
style=
"color:blue;"
>data of
this
url</a>
5. ลิงก์ที่มีรายละเอียดในคลาส mylink
<a href=
"url.htm"
class=
"mylink"
>data of
this
url</a>
6. ลิงก์ที่กระโดดไปยังจุดในหน้าเดียวกัน
<a href=
"#bottom"
>jump to bottom</a>
<a name=
"bottom"
>☸</a>
7. ลิงก์ที่สั่งเปิดกล่อง alert
<a href=
"javascript:alert('data');"
>Alert
"data"
word</a>
8. ลิงก์ที่บนภาพแทนข้อความ
<a href=
"url.htm"
><img src=
"url.jpg"
></a>
9. ลิงก์ที่เรียกฟังก์ชัน lightbox ภายนอก
<a href=
"url.htm"
rel=
"lightbox['data']"
><img src=
"url.jpg"
></a>
10. ลิงก์ที่สร้างด้วยภาษาสคริปต์
echo
"<a href='url.htm'>data of this url</a>"
;
11. ลิงก์ที่สร้างด้วยภาษาสคริปต์มีตัวแปร
$url =
"url.htm"
;
echo
"<a href='$url'>data of this url</a>"
;
12. ลิงก์ที่รับ url จากภายนอก
$url = $_REQUEST[
'url'
];
echo
"<a href='$url' title='data page'>data of this url</a>"
;