Submitted about 2 years ago
Advice Generator App using Advice Slip API
@kyle-barry-apps
Design comparison
SolutionDesign
Solution retrospective
This was a fun and quick one. The only question I have:
How would you add curly quotes to the beginning and end of the generated advice?
I tried using the html character encoding, but it didn't seem to work. Thanks!
Community feedback
- @juancaorgPosted about 2 years ago
Hi 👋,
Great job on your solution!
To add curly quotes to the generated advice, you could use the
<q>
element instead of the<h1>
that you are currently using.Then, instead of modifying the
innerText
, you could trytextContent
for changing the text for your quote, without any additional curly quotes, only the fetched advice.Hope this feedback helps.
Marked as helpful2
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