Update snippet descriptions

This commit is contained in:
Isabelle Viktoria Maciohsek
2020-10-19 18:51:03 +03:00
parent f0fbe0c3e5
commit 5e8e6f51a3
36 changed files with 97 additions and 82 deletions

View File

@ -6,8 +6,8 @@ tags: browser,beginner
Creates an element from a string (without appending it to the document).
If the given string contains multiple elements, only the first one will be returned.
- Use `document.createElement()` to create a new element.
- Set its `innerHTML` to the string supplied as the argument.
- Use `Document.createElement()` to create a new element.
- Use `Element.innerHTML` to set its inner HTML to the string supplied as the argument.
- Use `ParentNode.firstElementChild` to return the element version of the string.
```js