Home » HTML » Html miscellaneous » Question
  1. Which of the following element is for holding client-side content?
    1. <element>
    2. <content>
    3. <template>
    4. <slot>
    5. None of these
Correct Option: C

<template> element in HTML is a mechanism for holding client-side content that is not to be rendered when page is loaded but may subsequently be instantiated during runtime using JavaScript. The element includes global attributes. <slot> is a placeholder inside a web components. <element> is one of part of web components, used to custom DOM elements. The obsolete part of web components is <content>.



Your comments will be displayed only after manual approval.