want to include one html page to another page in the client-side
I have a common header for all the html pages, so I want the header.html
page to be included in another html page. Suggest some ways as this header
needs to be given in all the 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; /* YOU CAN ADJUST IMAGES SPACE WITH
THIS 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>
No comments:
Post a Comment