alt on images?The alt attribute provides a text description of an image. This helps screen readers read the description aloud for users who cannot see the image, improving accessibility.
disabled on a button in HTML5?In HTML5, boolean attributes like disabled are true if present, regardless of value. The correct way is just disabled without a value.
src attribute is missing from an <img> tag?<img alt="A cat">
The src attribute tells the browser where to find the image file. Without it, the browser cannot load the image and usually shows a broken image icon or nothing.
<input> elements with a type attribute equal to "checkbox"?CSS attribute selectors can use quotes or no quotes around the attribute value. All three selectors correctly select inputs with type checkbox.
ARIA attributes enhance accessibility when native HTML elements lack the needed semantic meaning. They should not replace native elements or be used unnecessarily.