24
2024/07
Form Elements Must Have Labels
SEO專家 Vince Wu
問題:Form Elements Must Have Labels
Fix any of the following: Form element does not have an implicit (wrapped) <label> Form element does not have an explicit <label> aria-label attribute does not exist or is empty aria-labelledby attribute does not exist, references elements that do not exist or references elements that are empty Element has no title attribute Element has no placeholder attribute Element's default semantics were not overridden with role="none" or role="presentation"
圖片:
解答:
增加Lable標籤:如First name:<input type="text" id="firstname">改為
- <label for="firstname">First name:</label> <input type="text" id="firstname">
- <label>First name: <input type="text"></label>
- <input type="text" aria-label="Search">
其它資訊:
關於可思科技
我們是一家「綜合型」的SEO服務公司,提供技術與內容並存的SEO優化,擁有經驗豐富的網站工程師,加上用心的文案團隊,讓網站成為「專業領域的權威網站」!
立即諮詢