@AdrianoEscarabote
Posted
Hi Manan Khurana, how are you?
I really liked the result of your project, but I have some tips that I think you will enjoy:
- every Html document must contain the main tag, so we can identify the main content, to fix this, wrap all the content with the main tag. HTML5 landmark elements are used to improve navigation experience on your site for users of assistive technology.
- Consider using rem for font size .If your web content font sizes are set in absolute units, such as pixels, the user will not be able to re-size the text or control the font size based on their needs. Relative units “stretch” according to the screen size and/or user’s preferred font size, and work on a large range of devices.
- to remove the scrollbar, we can do this:
body {
margin: 0;
padding: 1rem;
}
To make the user have to at least select one button, we can do it in a very simple way:
ratingButtons.forEach((e) => {
e.addEventListener("click", () => {
ratingNumber.innerText = e.innerText;
btnSubmit.addEventListener("click", () => {
mainContainer.style.display = "none";
thankYouContainer.style.display = "";
})
})
})
The rest is great!
I hope it helps... 👍
Marked as helpful
@khuranamanan
Posted
@AdrianoEscarabote Thank You, Adriano, for the feedback. I have made the changes you suggested. 😊