It appears that the usage you mentioned is not common in HTML code but can be utilized in CSS by using the element.class combination without the symbols <, &, and >. However, in HTML5, you have the option to use <main> for defining the main content of a webpage.
Extracted from: W3 Schools
Meaning and Purpose
The <main>
tag specifies the primary content of a document.
The content within the <main>
element should be distinct to the document, avoiding any repetitive elements found across various documents like sidebars, navigation links, copyright information, logos, and search forms.
Note: A document should contain only one <main>
element, and it must NOT be nested within an <article>
, <aside>
, <footer>
, <header>
, or <nav>
element.
I trust this explanation clears things up. The use of custom interfaces with unique tags might also exist, although I personally implement {{tag}} for dynamic templates rather than what you described.
Let's support each other in our programming journey. We all started as beginners at some point.