Hey everyone just finished my 1st off platform project looking for some constructive review with my HTML and CSS codes. Had a bit of a trip when attempting to properly add images/ background-images. Not sure if it was necessary to add the image srcs in both the HTML and CSS files but everything looked okay based on the solution. Thanks in advance!
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Dasmoto's Arts & Crafts</title>
<link href="./resources/css/index.css" rel="stylesheet">
</head>
<body>
<!-- Main Header-->
<h1>Dasmoto's Arts & Crafts</h1>
<!-- 1st section-->
<div>
<h2>Brushes</h2>
<img class=hacksaw src="hacksaw.jpeg">
<h3><strong>Hacksaw Brushes</strong></h3>
<p class="brushes">Made of the highest quality oak, Hacksaw brushes are known for their weight and ability to hold paint in large amounts.
Available in different sizes. <br><span>Starting at $3.00/ brush.</span>
</p>
</div>
<!--2nd section-->
<div class="frames">
<h2>Frames</h2>
<img class="frames" src="frames.jpeg">
<br>
<h3><strong>Art Frames (assorted)</strong></h3>
<p>Assorted frames made of different material including MDF, birchwood, and PDE. Select frames can be sanded and painted
according to your needs. <br><span>Starting at $2.00/ frame.</span>
</p>
</div>
<!--3rd section-->
<div class="paint">
<h2>Paint</h2>
<img class="paint" src="finnish.jpeg">
<h3><strong>Clean Finnish Paint</strong></h3>
<p>Imported paint from Finland. Over 256 colors available in-store, varying in quantity (1oz. to 8oz.).
Clean Finnish paint microbinds to canvas, increasing the finish and longevity of any artwork.
<br><span>Starting at $5.00/ tube.</span></p>
</div>
</body>
</html>```
*{
box-sizing:border-box;
font-family: Helvetica;
}
h1{
font-size: 100px;
font-weight: bold;
color: khaki;
text-align: center;
position: relative;
z-index: 1;
background-image: url(https://s3.amazonaws.com/codecademy-content/courses/freelance-1/unit-2/pattern.jpeg);
}
h2{
font-size: 32px;
font-weight: bold;
background-color: mediumspringgreen;
color: white;
background-image: url(hacksaw.jpeg);
}
div.frames h2{
background-color: lightcoral;
background-image: url(frames.jpeg);
}
div.paint h2{
background-color: skyblue;
background-image: url(finnish.jpeg);
}
span{
font-weight: bold;
color: blue;
}