DeniseO25 / prj-rev-bwfs-tea-cozy

1 stars 0 forks source link

Best practices on Formatting and Commenting #3

Open tommygebru opened 5 years ago

tommygebru commented 5 years ago

Great use of commenting in both your HTML and CSS documents, this provides a high-level of organization and note-taking. 👀

Introduce more clarity early at the beginning of your project to create a guideline and narrative. As you build out more complex webpages and projects, comments can help break down sections and problem solve. 👍

tommygebru commented 5 years ago

Also nice work formatting your code with indentation another great way to improve readability. 👀 Indenting your code also helps point out the nested elements, and distinguish between parent/child elements.

Below I wrote an example of the nest/wrap relationship, another name for it would be the parent/child relationship.

    <div class="wrapping">
        <p class="nesting"></p> 
        <p class="nesting"></p>
    </div>

or

    <div class="parent">
        <p class="children"></p> 
        <p class="children"></p>
    </div>
DeniseO25 commented 5 years ago

The example you provide really helps clarify things.