Why do we need the .innerHTML
instruction?
- To retrieve only the text of an element, without the tags
- To retrieve the whole element
- To retrieve the attributes of an element, like the
id
We need it to retrieve only the text of an element, without the tags.