Javascript has DOM(Document Object Model) which can easily get any element from HTML as an element and not only can change its content but also can create new element using different types of query Selector like:
1. getElementById();
2.getElementsByCLassName()
3.getElementsByTagname()
4.queryselector()
5.queryselectorAll()