> Alternative text: High All have an alternative text which describe the image visually. Please don't do that. Don't put an alt on ALL images. Screen readers will read all of them. Skin and flavour images don't deserve to be read outloud. Nobody wants to hear "bottom left corner of logo" or "rounded corner".
> Nobody wants to hear "bottom left corner of logo" or "rounded corner". I would assume front-end guys care more about passing a Web Accessibility[0] audit than inconveniencing some users, thus good taste and wise discretion is spared for avoidance of litigation. [0] https://www.w3.org/TR/WCAG20-TECHS/H37.html
Front-End Checklist
51–60 of 82 posts
Re: Front-End Checklist
#52So what unit should be used?
Re: Front-End Checklist
#53Earlier quoted context omitted.
Edit: my original comment (retained below) is wrong about this being malformed, and it's completely valid. Some more info here: https://html.spec.whatwg.org/multipage/syntax.html#optional-... --- Original comment : The fact that browsers are able to handle malformed HTML doesn't mean that you should do it that way. There's no meaningful benefit that I can think of, and the potential to break a ton of things that aren…
My understanding is that it is not malformed, but actually a part of the spec. Maybe someone else has a link to the appropriate part of the spec, but following someone else's link to the spec and reading it for myself is how I learned that it is not malformed.
>An html element's start tag can be omitted if the first thing inside the html element is not a comment.
>An html element's end tag can be omitted if the html element is not immediately followed by a comment.
Re: Front-End Checklist
#54These are very subjective, I've never done half of the 'high' priority items, and I've never had any issues with my site having a 'disfunction'. Take this list with a gigantic grain of salt. For example, your site certainly won't break from missing the 'lang' attribute.
Your site isn't "broken", per se, but it's not as high quality as it could be.
Re: Front-End Checklist
#55Earlier quoted context omitted.
Typically you’d use background images for something like that. Regardless, if you do have an image that doesn’t add anything to the information on the page give it an empty alt attribute to indicate to the screen reader that it shouldn’t try to read out the file name or something.
Do you mean like that? Empty quotes and it would not be read?
Re: Front-End Checklist
#56These are very subjective, I've never done half of the 'high' priority items, and I've never had any issues with my site having a 'disfunction'. Take this list with a gigantic grain of salt. For example, your site certainly won't break from missing the 'lang' attribute.
No. But e.g. automated translation now needs to guess your language, and that's... not always successful. Screenreaders will need to guess the language to pronounce properly. Search engines will have to infer the language. And so on. Your site isn't "broken", per se, but it's not as high quality as it could be.
Update: from elsewhere on this thread, Google ignores :
> But the language attribute within the HTML markup is something we don't use at all. We've found that this language markup is something that is almost always wrong. So we tend to ignore that.
https://www.seroundtable.com/google-ignores-the-html-lang-at...
Re: Front-End Checklist
#57What about back-end? Should be nice have one
Re: Front-End Checklist
#58Earlier quoted context omitted.
Do you mean like that? Empty quotes and it would not be read?
Exactly. Every img element should have an alt attribute; those with visual content should have explanatory text in it.
Re: Front-End Checklist
#59> Alternative text: High All have an alternative text which describe the image visually. Please don't do that. Don't put an alt on ALL images. Screen readers will read all of them. Skin and flavour images don't deserve to be read outloud. Nobody wants to hear "bottom left corner of logo" or "rounded corner".
Typically you’d use background images for something like that. Regardless, if you do have an image that doesn’t add anything to the information on the page give it an empty alt attribute to indicate to the screen reader that it shouldn’t try to read out the file name or something.
Re: Front-End Checklist
#60Note that you don't actually need the head or body tags in your page. The browser already knows what is allowed in the head. It looks weird at first, but you can write your html like so: My Title Also note that the html tag can also be omitted, unless you need to set the language. Don't worry about closing it either.
Edit: my original comment (retained below) is wrong about this being malformed, and it's completely valid. Some more info here: https://html.spec.whatwg.org/multipage/syntax.html#optional-... --- Original comment : The fact that browsers are able to handle malformed HTML doesn't mean that you should do it that way. There's no meaningful benefit that I can think of, and the potential to break a ton of things that aren…