Design comparison
SolutionDesign
Solution retrospective
Can API's be used by any other methods?
Community feedback
- @denieldenPosted about 2 years ago
Hello Mohit, You have done a good work! 😁
Some little tips to improve your code:
- use
main
tag to wrap the card and improve the Accessibility but not as a container of that one element - also you can use
article or blockquote
tag instead of a simplediv
to the container card for improve the Accessibility - use
min-height: 100vh
to body instead ofheight
, otherwise the content is cut off when the browser height is less than the content - add
transition
on the element with hover effect - instead of using
px or %
use relative units of measurement likerem
-> read here
Keep learning how to code with your amazing solutions to challenges.
Hope this help 😉 and Happy coding!
Marked as helpful1 - use
- @tanererenPosted about 2 years ago
The Fetch API call was introduced with ES6 in 2015. It's currently the most clean and easiest to use. It's native to the browser (doesn't need to be loaded from an external source)
There are other methods of API callbacks though, for example:
- XMLHttpRequest - which is the oldest one and the syntax isn't that great
- JQuery's .ajax method - JQuery is a JS library that was very popular and helped manipulate the DOM with less code
Other promise based Ajax libraries:
- Qwest
- SuperAgent
- Axios
Marked as helpful1
Please log in to post a comment
Log in with GitHubJoin our Discord community
Join thousands of Frontend Mentor community members taking the challenges, sharing resources, helping each other, and chatting about all things front-end!
Join our Discord