Meta tags

css Belgium
  • 13 years ago
    Is it possible to work with an external file containing the meta-tag for the keywords? So I wouldn't have to place this in every page:

    <meta name="keywords" content="test, test1, test2" />

    Thank you
    Arne










  • 13 years ago

    Are you using any sort of server-side language like PHP or ASP?

    If so, you can include the file like this:

    <? include_once("./meta.php"); ?>

    in the place of the meta tags. In fact, everything that's identical in each page (header/footer etc.) - everything apart from the unique page content, should be put in an include file.

    Read more at www.php.net

  • 13 years ago
    The problem is my host doesn't support server side languages, so that wouldn't work ...

Post a reply

Enter your message below

Sign in or Join us (it's free).

Contribute

Why not write for us? Or you could submit an event or a user group in your area. Alternatively just tell us what you think!

Our tools

We've got automatic conversion tools to convert C# to VB.NET, VB.NET to C#. Also you can compress javascript and compress css and generate sql connection strings.

“There are only two kinds of languages: the ones people complain about and the ones nobody uses” - Bjarne Stroustrup