html5 - want to include one html page to another page in the client-side -


i have common header html pages, want header.html page included in html page. suggest ways header needs given in html pages.

<!doctype html public "-//w3c//dtd html 4.01 transitional//en" "http://www.w3.org/tr/html4/loose.dtd"> <html> <head>     <meta http-equiv="content-type" content="text/html; charset=iso-8859-1">     <title>insert title here</title>     <style type="text/css">     header#arriba {         width:1350px;         height:30px;         clear:both;         margin:auto;         text-align:center;         background-color:red;         color: white;      }      header#arriba img {         vertical-align:middle;         margin:2px 700px 2px 35px; /* can adjust images space margins */     }       header img{       float:left;       margin-right:5px;      }     </style> </head> <body>     <header id="arriba">         <h2><img src="header.png" alt="1" width="150px" height="25px"/>data</h2>         </header> </body> </html> 

first of change extension of pages "html" "shtml".

create html page having header.

and can can include header shtml page following command

<!--#include virtual="web/controls/toppanel.html" --> 

the thing prerequisite ssi(server side injection) should supported server.


Comments

Popular posts from this blog

assembly - 8086 TASM: Illegal Indexing Mode -

Java, LWJGL, OpenGL 1.1, decoding BufferedImage to Bytebuffer and binding to OpenGL across classes -

javascript - addthis share facebook and google+ url -