Is there a content element in HTML5?

后端 未结 3 1879
感情败类
感情败类 2020-12-10 11:49

I was confused about the content element the guy is using. I couldn\'t find information on it and as far as I know there wasn\'t something like this in HTML5. A

3条回答
  •  误落风尘
    2020-12-10 12:50

    There is a element, although it is used differently than how the presenter is using in the video linked in this question.

    The HTML element is used inside of Shadow DOM as an insertion point. It is not intended to be used in ordinary HTML. It is used with Web Components.

    The presenter in the video probably should have been using the

    element.

    The HTML

    Element represents the main content of the of a document or application. The main content area consists of content that is directly related to, or expands upon the central topic of a document or the central functionality of an application. This content should be unique to the document, excluding any content that is repeated across a set of documents such as sidebars, navigation links, copyright information, site logos, and search forms (unless, of course, the document's main function is as a search form).

提交回复
热议问题