So I have finished the Dasmoto practice and would like a review on it. I have three points for this review:
-
My banner appears very big in comparison to the example in the exercise. I followed the instruction to use a font-size of 100px, so this might be intended but I would like to know if I may made a mistake here.
-
I use the span element to make the text about prices blue and gave it a color in CSS. Is this the best way to approach this?
-
Overall CSS buildup.
Here’s my code:
HTML part:
<!DOCTYPE html>
<html lang="en">
<head>
<title>Dasmoto's Arts & Crafts</title>
<link rel="stylesheet" href="./resources/CSS/style.css">
</head>
<body>
<header>
<h1>Dasmoto's Arts & Crafts</h1>
</header>
<main>
<section>
<h2 id="brushes">Brushes</h2>
<img src="./resources/Images/Brushes.jpeg" alt="Hacksaw Brushes">
<h3><strong>Hacksaw Brushes</strong></h3>
<p>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. <span>Starting at $3.00 / brush.</span></p>
</section>
<section>
<h2 id="frames">Frames</h2>
<img src="./resources/Images/frames.jpeg" alt="Art Frames">
<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. <span>Starting at $2.00 / frame.</span></p>
</section>
<section>
<h2 id="paint">Paint</h2>
<img src="./resources/Images/Paint.jpeg" alt="Tubes of paint">
<h3><strong>Clean Finnish Paint</strong></h3>
<p>Imported paint from Finland. Over 256 colors available in-store, varying in quantity (1 oz. to 8 oz.). Clean Finnish paint microbinds to canvas, increasing the finish and longevity of any artwork. <span>Starting at $5.00 / tube.</span></p>
</section>
</main>
</body>
</html>
CSS part:
header {
box-sizing: border-box;
background-image: url(../images/bannerbg.jpeg);
text-align: center;
font-family: Helvetica;
font-size: 100px;
font-weight: bold;
color: khaki;
}
h2 {
font-family: Helvetica, sans-serif;
font-size: 32px;
font-weight: bold;
color: white;
}
#brushes {
background-color: mediumspringgreen;
}
#frames {
background-color: lightcoral;
}
#paint {
background-color: skyblue;
}
span {
font-family: Helvetica, sans-serif;
font-weight: bold;
color: blue;
}
Thank you for looking at my practice.