External html

Discussion in 'HTML and CSS' started by navyfalcon, May 13, 2020.

  1. navyfalcon

    navyfalcon

    Joined:
    May 12, 2020
    Messages:
    1
    Likes Received:
    0
    external html
    how to add a header to. all html pages
    1. put this in your page
    <script src="https://www.3schools.com/lib/w3.js"></script>
    2. then where ever you want your html code, from the separate file,
    to be included to your page:
    <div w3-include-html="header.html"><//div>

    template (my example)
    Code (Text):

       <!doctype html>
       <head>
       <meta html-equiv="content-type....
       <meta html-equiv="content-language....
       <meta name=....
       <title>....
       <link rel="stylessheet....
       <style type="....
       </style>
       <script src="https://www.w3schools.com/lib/w3.js"></script>
       </head>
       <body background=....
       <dl>
       <dt><b><a name="....
       <div w3-include-html="header.html"></div>
       <script>w3.includeHTML();</script>
       </body>
       </html>
       
    this did not work for me
    any suggestions
    thank you for your time and help
    falcon
     
    navyfalcon, May 13, 2020
    #1
    1. Advertisements

  2. navyfalcon

    json101

    Joined:
    May 19, 2020
    Messages:
    1
    Likes Received:
    0
    json101, May 19, 2020
    #2
    1. Advertisements

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments (here). After that, you can post your question and our members will help you out.