4. Write a header element place the company
logo found in the file: logo.png as an image link
to
the home page, index.html
The html code for the given problem statement is:
<html>
<head>
<style>
.header img {
float: left;
width: 150px;
height: 150px;
background: #666;
}
.header h1 {
position: relative;
top: 15px;
left: 10px;
}
</style>
</head>
<body>
<div class="header">
<h1>
<a href = "index.html" target = "_self">
<img src = "/images/logo.png" alt = "Homepage"/>
</a>
</h1>
</div>
</body>
</html>
Get Answers For Free
Most questions answered within 1 hours.