You're given the HTML for a Todo List app. Add support for creating tasks and deleting existing ones.
Add the following functionality to the app:
<input> field should be cleared upon successful addition.Give the task input an accessible label so the form is operable with assistive technology.
ids, data attributes, replacing some tags, etc.), but the result should remain the same visually.The Svelte and Vue solutions reject submissions that are empty after trimming whitespace.
Render entered tasks as plain text, including text that resembles markup. The task input also needs an accessible label.
The React and Vanilla JavaScript solutions reject empty or whitespace-only tasks when the user adds an item.