en.javascript.info/2-ui/1-document/07-modifying-document/6-create-list/task.md
2021-03-17 09:32:56 -03:00

19 lines
436 B
Markdown

importance: 4
---
# Create a list
Write an interface to create a list from user input.
For every list item:
1. Ask a user about its content using `prompt`.
2. Create the `<li>` with it and add it to `<ul>`.
3. Continue until the user cancels the input (by pressing `key:Esc` or via an empty entry).
All elements should be created dynamically.
If a user types HTML-tags, they should be treated like a text.
[demo src="solution"]