Design comparison
Solution retrospective
Another challenge completed. π₯°ππΎ
Community feedback
- @Finney06Posted over 1 year ago
Hello there π. Good job on completing the challenge !
Here are some suggestions regarding your code that may be of interest to you.
HTML π·οΈ:
To clear the HTML validation report:
-
To fix the error "Element 'div' not allowed as child of element 'button' in this context," you should move the <div> element outside of the
<button>
element or replace it with a permitted element. The permitted elements that can be direct children of a<button>
element are:<a>
<svg>
<use>
- Text
Here's an example of how to fix the error by using a
<span>
element instead of a<div>
element inside the<button>
element:<button> <span class="flex justify-between items-center"> </span> </button>
To fix the "The 'type' attribute is unnecessary for JavaScript resources" info error, you can simply remove the "type" attribute from the tag is
text/javascript
, so you don't need to explicitly specify it when including a JavaScript resource.I hope you find it helpful!π Above all, the solution you submitted is π. πHappy coding!
Marked as helpful0 -
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