DEV Community

Discussion on: HTML output element

 
mzaini30 profile image
Zen

I usually create my own HTML tag, like <hello></hello>. Then, I manipulate with document.querySelector("hello").innerText = "World"

Thread Thread
 
dailydevtips1 profile image
Chris Bongers

To what advantage?
I don't quite know how a custom tag benefits you?

Thread Thread
 
mzaini30 profile image
Zen

For simplify writing. So, I don't write <div class="hello"></div>. Just <hello></hello>