Home » HTML » Html miscellaneous » Question
  1. Which element is used for defining a new custom DOM elements?
    1. <slot>
    2. <content>
    3. <shadow>
    4. <element>
    5. None of these
Correct Option: D

<element> is HTML obsolete element. It was the part of Web Components specification. It was intended to be used to define new custom DOM elements. It was removed in favor of JavaScript-driven approach for creating new custom elements. <shadow> is obsolete part of web component used to shadow DOM. <slot> element in HTML is a part of Web Components technology suite. The obsolete part of web components is <content>.



Your comments will be displayed only after manual approval.