Top validation errors
w3clove.com
w3clove.com
Um, like this: http://bl.ocks.org/2941604
* Required attribute alt missing: Most images are decorative, having alt is pointless in most cases. Should be optional.
* & didn't start a character reference: proving this was a bad choice for an escape character to begin with
You can't solve a social problem (content providers who don't care) with a technical limitation (required alt tags).
For images that are purely decorative including an empty alt attrib is valid. People using screen readers (and people with images turned off[1]) don't need to hear (or read)"SMALL RED BULLET" for all 7 items in the list.
[1] I often have images turned off. I'm using a mobile broadband dongle. My ISP uses horrible proxies to compress images. I'm in the UK. The IP of the proxies is 1.2.3.9 through 1.2.3.12 - this is sub-optimal for many obvious reasons. Bypassing this proxy is trivial, but means I download a lot more data.
The only reason I'm still using them is that they don't charge for MB or GB; I pay for three months and get "unlimited surfing". They block some stuff after you hit 1GB, but that's trivially easy to get around. Which I do, since they've said I get unlimited web use.
I typically use "-" or "*" as an alt for bullet images in text, and similar decorative markers. It seems to make more sense to me to emphasize that there's a list.
NO. ALT attribute must not be optional. Just put an empty alt in for decorative images and learn how to do sensible alts or long_desc for other images.
And many of the supposedly decorative images are used functionally, in which case they need proper alts.
It always surprises me when I make a mistake in my code and I don't notice it until I next few the source because the browser has understood what I was meant to do.
I guess although this is good for the end user it isn't always a great thing for developers learning HTML if they're able to write bad HTML without ever knowing they're doing something wrong.
> This shows how well browsers handle bad HTML
It's not that hard to handle something like an <img> tag with no alt attribute.It's nice how they actually made writing HTML much nicer in HTML5, even without this. The simplification of the doctype and charset (<!doctype html><meta charset=utf-8>) was really nice.
http://w3clove.com/sitemaps/check?url=http%3A%2F%2Fnews.ycom...
You wouldn't tell there were so many images, would you? Should they have an "alt" attribute?
In general though, the `alt`-attribute should be present. If the image is purely decorative, the value should be an empty string (although CSS rather than `img`-tags are recommended for purely decorative images anyway).
The purpose of the alt-text is some text to replace the image if you are browsing without images (e.g. using lynx or a screen-reader). Empty string means no replacement text, while a missing alt-attribute could be replaced with a text saying eg. "[unknown image]".
It makes sense.
If the alt tag was recommended - but optional - then a missing alt-tag tells you the developer didn't think about it (and who knows if the image is significant), while a present but empty alt-tag indicates the image really is decorative/insignificant.
As long as the alt-tag is required, a valid site will contain alt="" all over the place, and you can't know whether that's because the site developer was lazy (but was using validating tools) or if the site developer decided to flag those images insignificant.
Am I feeding a troll here?
(edit: It's like the difference between an SQL NULL and an empty string.)
I just disagree.
Making the alt tag required won't make lazy developers/content providers any less lazy, so requiring it actually weakens the signal you're looking for.
At least requiring one makes them think about it. And tools can put in "image".
>The MIBenum value is a unique value for use in MIBs to identify coded character sets.
>The value space for MIBenum values has been divided into three regions. The first region (3-999) consists of coded character sets that have been standardized by some standard setting organization. This region is intended for standards that do not have subset implementations. The second region (1000-1999) is for the Unicode and ISO/IEC 10646 coded character sets together with a specification of a (set of) sub-repertoires that may occur. The third region (>1999) is intended for vendor specific coded character sets.
However that specific error (reference to entity "x" for which no system identifier could be generated) has this message:
>This is usually a cascading error caused by a an undefined entity reference or use of an unencoded ampersand (&) in an URL or body text. See the previous message for further details.
I notice this on one website that is using MIBEnumID:
<span
class="st_facebook_large"
displaytext="Facebook"
st_url='http://www.hardrock.com/locations/cafes3/events.aspx?locationid=108&MIBenumID
Could it be that it is just throwing this error because of the unencoded ampersand? And that since it is part of some MS/ASP.net setup it is everywhere?There's a separate chart for the top 100 warnings: