en.javascript.info/2-ui/1-document/07-modifying-document/11-append-to-list/solution.md
Ilya Kantor dbf5c7587c minor
2017-03-13 00:21:00 +03:00

8 lines
177 B
Markdown

When we need to insert a piece of HTML somewhere, `insertAdjacentHTML` is the best fit.
The solution:
```js
one.insertAdjacentHTML('afterend', '<li>2</li><li>3</li>');
```