Is there a (simple) way to import meta data from another file in HTML?
I have tens of pages with the same header. When I add or update a link or metadata, I don't want to update every file.
After reading these answers, I tried: <link rel="import" href="/html/content.html">
. It works fine for <link href=
or <link rel=
, but meta
are not imported.
Meanwhile, I created a PHP function that echoes the headers in each page, but I would have prefer a pure HTML solution.