Design comparison
Solution retrospective
Hi any feedback would be great ;)
Community feedback
- @pikapikamartPosted about 3 years ago
Hey, awesome work on this one. Layout in desktop seems fine, it is responsive and the mobile state looks fine as well.
Some suggestions would be:
- The
nav
element could have been wrapped inside aheader
element. Also, a typical structure of a site looks like:
<header /> <main /> <footer />
This way, all contents are being wrapped by a landmark element.
- Lose the word
logo
on the website-logo, use onlyalt="fylo"
avoid using words that relates to "graphic" such as "logo, icon, images.." it is already an image, no need to describe it as one. - The list of links on the right side of the logo should only be the one inside the
nav
element since those are your site's navigational links. - Hero-image
alt
could have been left emptyalt=""
since it is only decorative image. - The text after the
h1
shouldn't be a heading tag, it is only a regular text so usep
tag on it. - For the four icons after the hero-section, use
alt=""
on it, when usingimg
don't forger to include thealt
attribute. If you don't add this, screen-reader will announce something, usually it says the the image source is.. I forgot, but always includealt
. - Again, the text on each of the icon after its heading tag should not be a heading tag, just use
p
tag on it. Only use heading tag, if you think the text gives an overview to what is the content of the section it is being wrapped. informations__img
selector should have usedalt=""
as an attribute on itsimg
inside since it is only decorative.- Avoid using multiple
h1
on a webpage, only use at least 1 per page. - Again, on this same section, change the heading tag to use
p
tag. see how fylo works
link'simg
for the arrow-icon should havealt=""
andaria-hidden="true"
on it as well, again it is only decorative images.- The
alt
for each of the testimonial person's image should be using their name as the value likealt="Satish Patel"
. - Good choice for using heading tag for each of the person's name, but, when using heading tag, always make sure that you are using them incrementally. If you use
h5
make sureh1, h2, h3, h4
are present before it. input
for themail
section should have either alabel
which hassr-only
class or anaria-label
, the value for both defines what theinput
does.- For the error-message, avoid using only
opacity
to show the error message. It is invisible for sighted users yes, but screen-reader will still pick them up, instead, usevisibility
property as the transition styling. This hides to all user and will only show if it hasvisibility: visible
. - The error-message should have an
id
attribute. Theid
will be referenced by theinput
element. For example, when theinput
is wrong, your javascript should addaria-invalid="true"
on theinput
element, this informs a user that their input is wrong, then same, if the input is wrong, you addaria-describedBy
attribute, and the value of that attribute refers to theid
of theerror-message
this way, users will know what kind of error they had made, based on the text of thaterror-message
. I have this simple snippet where you can look on how those arias could be used. If you want to make it even more accessible, look uparia-live
.
FOOTER
- Website-logo-img should have
alt="fylo
as the attribute. - The
alt
for the location icon should have usedalt=""
since it is decoration only same as for the other 2 icons. - The links on the right side could be wrapped inside a
nav
element, since those are still your navigational links. Usingul
as well inside it would be really great. - Social-media-links should be using
a
tag for each, since it is a "link". - Using
ul
as well for the social media links would be great. - On the
a
tag what will wrap the social-media, it should have eitheraria-label
attribute or ansr-only
text inside it, describing where this link would take the user, on the facebook, the value should be "facebook".
Aside from those, great job again on this one.
Marked as helpful0@promathieuthiryPosted about 3 years agothanks you @pikamart ;) once again an exhaustive review. Yeah I don't pay attention to accessibility , do you know ressources where i can read a website as a blind person for example? maybe in the dev tools?
0@pikapikamartPosted about 3 years ago@promathieuthiry Hey, I don't really have any resource where you can read about how a person with disability like blindness reads a website, but I use a tool that people who have disabilities uses. It is called nvda, this is a screen-reader for desktop. You can visit the site in this link .
But I recall taking a free course in edx site, introduction to web accessibility. I heard this from Grace and I saw this and took the course. This course won't teach you specific methods on how to code, but this will allow you to be aware on how people with different disabilities uses the web.
Marked as helpful1@promathieuthiryPosted about 3 years ago@pikamart great i will take this course ;)
0 - The
Please log in to post a comment
Log in with GitHubJoin our Discord community
Join thousands of Frontend Mentor community members taking the challenges, sharing resources, helping each other, and chatting about all things front-end!
Join our Discord