أنشئ حسابًا أو سجّل الدخول للانضمام إلى مجتمعك المهني.
Custom elements are created using document.registerElement():
Example:
var myFoo=document.registerElement('my-Foo')
document.body.appendChild(new myFoo());
The first argument to document.registerElement() is the element's tag name. The name must contain a dash (-). So for example, <x-tags>, <my-element>, and <my-awesome-app> are all valid names, while <tabs> and <foo_bar> are not. This restriction allows the parser to distinguish custom elements from regular elements but also ensures forward compatibility when new tags are added to HTML.
If you're looking to create your own tag, then there's several ways to do it!* Polymer by Google https://www.polymer-project.org/
* Pure js as ( as showing in the prev answer )
<HTML>
</HTML>
must be include slash tag before save the page like </html>
هل تحتاج لمساعدة في كتابة سيرة ذاتية تحتوي على الكلمات الدلالية التي يبحث عنها أصحاب العمل؟