HTML include statement
Posted
by iMaster
on Stack Overflow
See other posts from Stack Overflow
or by iMaster
Published on 2010-04-28T22:28:22Z
Indexed on
2010/04/29
8:17 UTC
Read the original article
Hit count: 420
I'm just trying to do a simple include statement in HTML. I have no clue why its not working. My file setup is basically index.php in the root and then a file called "includes" with a file "header.html" inside. So here's my code:
<!DOCTYPE html>
<html lang="en">
<html>
<head>
<title>Title</title>
<link type="text/css" href="style/style.css" media="screen" rel="stylesheet">
<script src="scripts/jquery.js" type="text/javascript"></script>
<script src="scripts/code.js" type="text/javascript"></script>
<meta http-equiv="content-type" content="text/html; charset=UTF-8" />
</head>
<body>
<div id="wrapper">
<!--#include virtual="/includes/header.html" -->
...blah blah blah
</div>
</body>
</html>
I've verified that the file is there so I'm not sure what else the problem could be. Thanks!
© Stack Overflow or respective owner