How to create your neskryvaemoy html tag and replace it with javascript?

I want to create such tags , so you don't have to close as img, input
And using a when instead to display other information, with this?

$(`x-我`).append(`<span class="mb ch w"> <span class="w">我</span> <span class="p1"> wǒ </span> <span class="p2"> wɔ↝ </span> <span class="p3"> wɔ3 </span><img class="an" src="/Strokeorder/grammar_hsk1/3-1-0-9/wo3.gif"><a class="sound" data-sound="grammar_hsk1/3-1-0-9/ch/wo3.mp3"></a></span>`);
June 10th 19 at 15:40
1 answer
June 10th 19 at 15:42
Solution
Read the standard
Correct own tags should start with the characters [a-z] does not contain the characters [A-Z] contain at least one character [-] (for future compatibility). The remaining characters can be almost arbitrary.
so the character does - Lucienn commented on June 10th 19 at 15:45
Only of characters - no.
If you add a prefix, for example it is possible. - Kenyatta commented on June 10th 19 at 15:48
and how to make it netactivism? to close it was not necessary? - Lucienn commented on June 10th 19 at 15:51
Does. The standard does not describe this, so just write a few . In addition, inside a private tag tag

also must always be closed explicitly.

- Kenyatta commented on June 10th 19 at 15:54

Find more questions by tags jQueryJavaScript