วิธีแสดงไดเรกทอรีก่อนหน้า
../ หมายถึงไดเรกทอรีก่อนหน้าของไดเรกทอรีที่อยู่ในตำแหน่งที่อยู่, ../../ แสดงถึงไดเรกทอรีก่อนหน้าซึ่งไฟล์ต้นฉบับอยู่และอื่น ๆ
สมมติว่าพา ธ info.html คือ: c: /inetpub/wwwroot/sites/blabla/info.html
สมมติว่า path index.html คือ: c: /inetpub/wwwroot/sites/index.html
รหัสเพื่อเพิ่ม index.html ไฮเปอร์ลิงก์ไปยัง info.html ควรเขียนเช่นนี้:
<a href = ../index.html> index.html </a>
สมมติว่าพา ธ info.html คือ: c: /inetpub/wwwroot/sites/blabla/info.html
สมมติว่า path index.html คือ: c: /inetpub/wwwroot/index.html
รหัสเพื่อเพิ่ม index.html ไฮเปอร์ลิงก์ไปยัง info.html ควรเขียนเช่นนี้:
<a href = ../../../index.html> index.html </a>
สมมติว่าพา ธ info.html คือ: c: /inetpub/wwwroot/sites/blabla/info.html
สมมติว่า path index.html คือ: c: /inetpub/wwwroot/sites/wowstory/index.html
รหัสเพื่อเพิ่ม index.html ไฮเปอร์ลิงก์ไปยัง info.html ควรเขียนเช่นนี้:
<a href = ../wowstory/index.html> index.html </a>
วิธีระบุว่าไฟล์ของไดเรกทอรีที่ต่ำกว่าอ้างถึงไดเรกทอรีที่ต่ำกว่าและเพียงแค่เขียนเส้นทางของไฟล์ไดเรกทอรีที่ต่ำกว่า สมมติว่าพา ธ info.html คือ: c: /inetpub/wwwroot/sites/blabla/info.html สมมติว่า path index.html คือ: C: /inetpub/wwwroot/sites/blabla/html/index.html รหัส href = html/index.html> index.html </a>
สมมติว่าพา ธ info.html คือ: c: /inetpub/wwwroot/sites/blabla/info.html
สมมติว่า path index.html คือ: c: /inetpub/wwwroot/sites/blabla/html/tutorials/index.html
รหัสเพื่อเพิ่ม index.html ไฮเปอร์ลิงก์ไปยัง info.html ควรเขียนเช่นนี้:
<a href = html/tutorials/index.html> index.html </a>