@AdrianoEscarabote
Posted
Hi Rico, how are you?
I really liked the result of your project, but I have some tips that I think you will enjoy:
- images must have alt text unless it is a decorative image, for any decorative image each IMG tag must have empty
alt=""
and addaria-hidden="true"
attributes to make all the assistive technologies of the Web, as screen reader. Learn the differences between decorative/meaningless images vs important content. - We have to make sure that all the content is contained in a reference region, designated with HTML5 reference elements or ARIA reference regions.
Example:
native HTML5 reference elements:
<body>
<header>This is the header</header>
<nav>This is the nav</nav>
<main>This is the main</main>
<footer>This is the footer</footer>
</body>
ARIA best practices call for using native HTML5 reference elements instead of ARIA functions whenever possible, but the markup in the following example works:
<body>
<div role="banner">This is the header</div>
<div role="navigation">This is the nav</div>
<div role="main">This is the main</div>
<div role="contentinfo">This is the footer</div>
</body>
It is a best practice to contain all content, except skip links, in distinct regions such as header, navigation, main, and footer.
Link to read more about: click here
The rest is great!
I hope it helps... 👍
Marked as helpful
@Shuliii
Posted
@AdrianoEscarabote actually i don't really quite understand.
so instead of using "<header></header>" we should use "<div role='header'></div>" instead?
@AdrianoEscarabote
Posted
@Shuliii no, prefer to use html5 semantic elements but if you want you can use aria too
@Shuliii
Posted
@AdrianoEscarabote ahh, but did I use the html5 semantic elements wrongly?