Include one HTML file in another HTML file using server side include

后端 未结 6 1922
Happy的楠姐
Happy的楠姐 2020-12-07 02:47

How can I include an HTML file in another HTML file. Is there any simple way to do that?

Thanks

6条回答
  •  春和景丽
    2020-12-07 03:28

    My preferred method employs PHP, if that is installed on your server. If so, the simplest way to do it is just insert this code at the appropriate place in your containing file:

    Note that both files must have the extension .php.

提交回复
热议问题