Theme colour switcher

Blog Topic: HTML

If something is native HTML, it has to be good, right? After all, it wouldn't be there if it wasn't....and HTML should be used over ARIA at all times when possible, right? Well, no. There are a few native HTML attributes that are terrible for accessibility, and which I wish would just die. I have to mention them when doing accessibility audits, because they simply don't work very well for…

Continue reading

I came across a weird issue while doing an accessibility audit recently. NVDA announces the site logo as "clickable", and the cursor changes to a pointer (the little "hand") when hovering over it with the mouse. I assumed it was a link to the homepage, as is typical for header logos, but clicking it did nothing – on the homepage, at least. On interior pages, clicking the logo takes you to…

Continue reading

Data attributes on HTML elements can be very handy for targeting certain elements with CSS and/or Javascript. Let's say, for example, we have a site with a menu whose links have a different background colour depending on what category they belong to, cats or dogs. The HTML might look like this: <ul class="menu">  <li class="menu-item">    <a…

Continue reading