Hi Nasif Fuad
So far so good with your project, but here is my take:
- One of the building blocks of a website are
Landmark
elements, whichprovide a powerful way to identify the organization and structure of a web page
- this is very useful for assistive technology users as information will be conveyed. Such elements includemain, header and footer
. For this project I would use the div with the classwrapper
as the main element. - This challenge requires interactive elements since it involves what is known as the disclosure pattern. EventListeners can only work effectively with elements such as buttons, an image is not an interactive element - hence it should not be associated with eventListeners. In other words , use semantic elements.
- Separation of concerns - let your html , your css and your JS be on separate files . You have some inline styles in your html and that can complicate maintainability if bigger projects. The use of the
!important
is something that should be avoided as well. - For font sizes , at least you should use
rems
, using px has some disadvantages as explained in the attached article - Why font-size must NEVER be in pixels
Hope that helps
Marked as helpful
@Nasifuad
Posted
@ChamuMutezva Thank you so much for pointing out this to me.