I'm working on coding a to-do app using JavaScript, HTML, and CSS. The issue I'm facing is that when I add the text-decoration: line-through property to the list items, it also affects the X icon used for deleting tasks. I suspect this problem arises because the icon is nested within the li element, but I'm not sure how to resolve this issue.
Below is my HTML code:
<!-- Your HTML goes here -->
This is my CSS code:
/* Your CSS code goes here */
Here's my JS code as well:
// Your JavaScript code goes here
Overall, I attempted various solutions like appending the element to the task container, but encountered issues in selecting the proper list element for deletion.