我用我的鏈接/按鈕/ ...上的title=""
屬性來詳細說明它們。但引導程序使用了很多aria-label=""
屬性,就我所瞭解的可訪問性而言。aria-label和title屬性有什麼區別?
於是我拿出來創建這樣的按鈕:
<button
id="show-raw-result"
class="btn btn-default btn-sm btn-twigfiddle"
title="Result was not easily readable so it has been automatically cleaned up, use this button to see the result raw"
aria-label="Result was not easily readable so it has been automatically cleaned up, use this button to see the result raw">
<span class="glyphicon glyphicon-asterisk"></span> Show raw result
</button>
但是複製/粘貼的標題就可以創建一個詠歎調標籤看起來就像醜陋。我應該選擇哪一個,爲什麼?
這不應該被標記爲重複。這個問題詢問了詠歎調標題和標題之間的區別,而鏈接的問題不包括標題屬性。 – tagawa