@PhoenixDev22
Posted
Hi Iniyavan,
Congratulation on completing another frontend mentor challenge. I have some suggestions regarding your solution if you don't mind:
- You should use
<header>
to wrap the<nav>
.
- The alternate text of the logo should not be hidden from the accessibility tree, Use the website's name as an alternate text alt=”Fylo". Remember that a website's logo is one of the most meaningful images on a site so use proper alt for it.
- If you are going to leave the logo not wrapped by
<a>
, it’s better to place it out the<nav>
as it does not navigate the user in anywhere (only an image).
- You should use
<form>
to wrap the input and the button, it's much likely to be a button with type="submit" instead of<a>
. To know when to use<a>
or<button>
in a specific situation, you must understand that every action on site falls under two different categories:
1. Actions where users affect the website’s back-end or front-end.
2. Actions where users won’t affect the website at all.
Action where users affect the website itself is where you use a button. For example, sign-up and purchase actions are often buttons. The user in these situations are creating a new account and completing a monetary transaction, which are actions that affect the website’s back-end. Creating new posts or making comments are actions that change a website’s content and what the user sees.
Actions where users won’t affect the website are where you use a link. These actions that take users from one page to another without changing anything on the website’s back or front-end.
- You should use the
<nav >
landmark to wrap the footer navigation. Then you should addaria-label=”secondary “
oraria-label=”footer”
to it. A brief description of the purpose of the navigation, omitting the term "navigation", as the screen reader will read both the role and the contents of the label. Thenav
element in the header could use anaria-label="primary"
oraria-label=”main”
attribute on it. The reason for this is that, you should add thearia-label
for a nav element if you are using the nav more than once on the page.You can read more in MDN
- In the footer’s logo , the SVG does not contain any visible text that describes the graphic, we need to add the alternative text (invisible) by:
-
<title>
A short title of the SVG</title>
-
Add the appropriate ID’s to the
<title>
. -
It must be the first child of its parent element.
On the <svg>
tag, add aria-labelledby="uniqueTitleID”
.
Overall, great work on this one. Hopefully this feedback helps.
Marked as helpful