Question:

Which of the following is not a web component element?

Show Hint

Web components are a set of technologies that allow you to create custom, reusable HTML elements
Updated On: May 4, 2025
  • \(\<shadow\/>\)

  • \(\<menu\/>\)

  • \(\<content\/>\)

  • \(\<element\/>\)

Hide Solution
collegedunia
Verified By Collegedunia

The Correct Option is B

Solution and Explanation

\(\<shadow\/>:\)- \: This is a valid web component element related to the Shadow DOM, which is used for encapsulation in web components.
- \: The \ tag is not specifically related to web components. It is used for defining a list of commands or options, but it is not a core part of the web components specification.
\(\<menu\/>:\)- \: This was used in the original web components spec for projecting content into shadow DOM, but it has been deprecated and replaced by \. Nonetheless, it is still considered part of the web component's evolution.
- \: While \ is not a standard HTML tag, the concept of creating custom elements (using JavaScript) is a core part of the web components specification.
Therefore, the correct answer is 2. \.

Was this answer helpful?
0
0