this example demonstrates making HTML elements as Javascript Components. components helps you to code once and use it anytime and anywhere you want as a HTMl tag!
this type of script is a kind of modern javascript and it is supposed to be defined as module in script tag.
in this example i made my header and footer as a javascript component.
I can use them without copying them in any html page just with a signle tag!