October 2017
Intermediate to advanced
370 pages
8h 57m
English
When building your own sidebar menus, you may come across validation errors like these:
What do they mean? The AMP validator checks that pages follow accessibility guidelines where appropriate. So when we add the on="tap" action to the li element, we are making it clickable and interactive. Hence, we must add role="button" to indicate it's clickable, and tabindex to make it focusable. You'll see this in various code examples throughout the book. (Of course, you should be doing these things anyway, not just because the validator is forcing ...
Read now
Unlock full access