Hello Community,
This is my first time posing a code-review request, as per the Web-Dev Syllabus. This code was for the project “Dasmoto’s Arts & Crafts”. I’d appreciate general feedback on semantic layout in the HTML as well as best-practice in code cleanliness. i.e. Using the ‘body’ selector to change the font-family vs. using ‘*’ selector.
(I’ve seen others using Github to share their entire project folders. Is that standard practice? Any links to resources on how to get started would be appreciated.)
Thanks,
P$
HTML:
<!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>
<header>
<h1>Dasmoto's Arts & Crafts</h1>
</header>
<content>
<h2 id="brushes">Brushes</h2>
<img src="./resources/images/hacksaw.webp" />
<h3>Hacksaw Brushes</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. <a class='sale' href="">Starting at $3.00/brush.</a>
</p>
<h2 id="frames">Frames</h2>
<img src="./resources/images/frames.webp" />
<h3>Art Frames (assorted)</h3>
<p>Assorted frames made of different material, including MDF, birchwood, and PDE. Select frames can be sanded and painted according to your needs.<a class='sale' href="">Starting at $2.00/frame.</a></p>
<h2 id="paint">Paint</h2>
<img src="./resources/images/finnish.jpeg" />
<h3>Clean Finnish Paint</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, increaseing the finish and longevity of any artwork.<a class='sale' href="">Starting at $5.00/tube.</a></p>
</content>
<footer>
</footer>
</body>
</html>```
CSS:
body{
font-family: Helvetica;
}
header{
background-image: url("https://content.codecademy.com/courses/freelance-1/unit-2/pattern.jpeg");
}
h1{
font-size: 100px;
font-weight: bold;
color: khaki;
text-align: center;
}
h2{
font-size: 32px;
font-weight: bold;
color: white;
}
#brushes{
background-color: mediumspringgreen;
}
#frames{
background-color: lightcoral;
}
#paint{
background-color: skyblue;
}
a.sale{
font-weight: bold;
color: blue;
}