简体   繁体   中英

data not shown using include tag in html5

im using html5 and want to create page like master page in asp, im craete page index.html and mainpage.html and want to call on click of link that exist in index page include mainpage.html. i use code on index page :

<!--#include virtual="mainpage.html" -->

but when we run index page it will show blank page

Can anyone please help me

  1. That's a comment tag. Nothing you put in there is going to do anything.

  2. There's no such thing as an html5 include tag.

“There's no such thing as an html5 include tag” @Fibericon

But you are trying to use ssi include command

Use this command and you will be satisfied, but you need a server environment (eg apache)

在include标记文件中,扩展名始终为.shtml,并且在Web服务器中启用了Check服务器端include标记。

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM