How to apply same content to multiple html pages

后端 未结 4 1936
我在风中等你
我在风中等你 2020-12-06 06:34

I\'m new to html and was wondering if there is a way to apply the same content to many html files at once.

For example, if I have many pages, but all those pages hav

4条回答
  •  挽巷
    挽巷 (楼主)
    2020-12-06 07:17

    You can write the common content in javascript file and include it in your html pages using script tag:

    
    

    You can use an online HTML to Javascript converter like this one to generate you javascript code.

提交回复
热议问题