@vanzasetia
Posted
Hi, Kure-ru!
It's okay if you don't get the size exactly like the original design. As long as it looks similar to the original design then that's already good. π
I recommend focusing on code quality instead. You can improve your solution by:
- Adding alternative text to the QR code. It is the main content of the image. So, it should have alternative text to be visible by screen readers.
- Removing
</div>
. There is no<div>
so there should not be</div>
. - Using
<body>
as the page element instead of the<html>
element. It's better to not change styling on the<html>
element since it can overwrite the user's settings. - Using
rem
orem
instead ofpx
for font sizes. Relative units such asrem
andem
can adapt when the users change the browser's font size setting.
I hope you find this useful.
Marked as helpful
@Kure-ru
Posted
@vanzasetia Hi Vanza!
Thank you so much for taking the time to look at my code! Your remarks are very helpful. π
Have a great day !
@vanzasetia
Posted
@Kure-ru
You are welcome! Happy to hear that was helpful! π
Have a nice day too! π