Dasmotos Arts and Crafts

Here is a link to my Dasmotos project. How can I make my code cleaner?


Sorry, I can’t see your code. Could you post a link/paste your code here?

Even if not, a general rule of thumb is to indent your code so it correctly shows parent/child relationships within your tags. And indenting your CSS.

also right click view page source?

Thank you! I forgot about the “View Page Source” option.

<!DOCTYPE html>
        <title>Dasmoto's Arts and Crafts</title>
        <link rel="stylesheet" type="text/css" href="/DasmotosProject/styles.css"> 
            <h1>Dasmoto's Arts & Crafts</h1>
        <div class="brushes">
            <img src="/DasmotosProject/images/hacksaw.webp">
            <p><strong>Hacksaw Brushes</strong><br><br><span>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></p>
            <link href=""><a>Starting at 3.00/brush</a>
        <div class="frames">
            <img src="/DasmotosProject/images/frames.webp">
            <p><strong>Art Frames (assorted)</strong><br><br><span>Assorted frames made of different material, including MDF, birchwood, and PDE. Select Frames can be sanded and framed according to your needs.</span></p>
            <link href=""><a>Starting at 2.00/frame</a>
        <div class="paints">
            <img src="/DasmotosProject/images/finnish.webp">
            <p><strong>Clean Finnish Paint</strong><br><br><span>Imported paint from Finland. Over 256 colors in-store,varying in quantity(1oz. to 8oz.). Clean Finnish paint microbinds to canvas, increasing the finish and longevity of any artwork.</span></p>
            <link href=""><a>Starting at 5.00/tube</a>

Do you see a difference of how this code is indented and formatted vs. yours?

yes this is very helpful, thankyou!

You’re quite welcome! Happy coding!

1 Like