[英]Hello, I'm receiving an HTML code error regarding img — Attribute img not allowed on element input at this point
在validatorw3.org 中驗證我的HTML 代碼時出現此錯誤。 如果他們認識到這個錯誤,有人可以提供幫助。 非常感謝。
<input type=image img id="magnifying-glass" src="images/magnifying-glass.png" alt="magnifying glass in search bar">↩
您需要從輸入中刪除img
屬性。
應該是這樣的: <input type=image id="magnifying-glass" src="images/magnifying-glass.png" alt="magnifying glass in search bar">
不是這個: <input type=image img id="magnifying-glass" src="images/magnifying-glass.png" alt="magnifying glass in search bar">
聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.