Daniel Pertu 如何盤點網站連結文字,找出無障礙問題
875 pieces of link text on our site, not one "read more", and 27 that say the same thing about different places
重點導讀
網站連結看起來都說得通,整體檢查時仍可能發現文字相同、卻連到不同地方的情況。
- Daniel Pertu 用 Python 檢查 Nakodo 的 76 個公開頁面,並把頁首、導覽、頁尾和正文連結分開統計。
- 他發現「pricing page」會指向不同公司的價格頁,而「privacy notice」會連到同一份隱私權說明的不同段落,讀者光看連結文字不容易知道目的地。
- 另一個問題是整張文章卡片都做成連結,螢幕閱讀器會把日期、標題和介紹一起念出來。
- 作者建議檢查每段連結文字實際指向哪些地方,並縮短整張卡片的連結名稱。
AI 伴隨問答
針對這篇報導有疑問?可直接點選快捷問題或向 AI 追問背景脈絡與技術細節:
信源出處dev.to
875 pieces of link text on our site, not one "read more", and 27 that say the same thing about different places
本文為 888news 精選之重點導讀。若需閱讀作者完整原文、技術細節與官方討論,請前往原始網站。
來源: Dev.to Top Tech (dev.to)
開啟原文