DEV Community

loading...

Discussion on: HTML output element

dailydevtips1 profile image
Chris Bongers Author

Hey, yeah I think it's like many semantic HTML, people tend to make their own options, but why?

We have all this semantic HTML for a reason, I would think.

As for the for the label, indeed, I choose not to show it, because to me it was confusing if that was causing the output value.
So wanted to not dive into that for this guide, but maybe I should state it as the full version.

Thread Thread
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 Author

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>