@vanzasetia
Posted
Hi! 👋
Good effort on this challenge! 👍
Here are some suggestions for improvements.
- The "change" is an interactive element. So, it should be wrapped by an interactive element. It could be either
a
orbutton
, depending on what you think will happen after the users click it. - For your information, anchor tags are for navigation, while the
button
elements are for actions like opening a modal, submitting a form, toggling element, etc. It is essential to use the correct elements. input
withtype="button"
was used before thebutton
element exist. It's best to avoid using legacy elements. So, I recommend usingbutton
element instead.- For images that are used only as decorations (they do not give users any information and serve only an aesthetic purpose), the alt tag should still exist but should be left empty:
alt=""
. This will tell the screen reader to simply skip over the image. - Never limit the height of the
body
element. It will not allow the users to scroll the page if the page content needs moreheight
. You can see the issue by looking at the site on a mobile landscape view. So, my recommendation is to usemin-height
instead. - Never use
100vw
on thebody
as it doesn't account for scrollbars when present. It may only ever introduce potential overflow/scroll bugs. - Use the
em
unit for media queries. It adapts when the users change their font size setting. Here are some references.
I hope this helps! Happy coding!