Новый курс! Каждый программист должен знать генеративный ИИ!
Попробуйте бесплатный урок+ 6
innerText vs innerHTML
Can anyone explain me the difference between innerText and innerHTML in Javascript. and when we use them.
1 ответ
+ 6
if you want not only text but also insert html into a element then you can do that with innerHTML.