mero12mero / prj-rev-bwfs-dasmoto

0 stars 0 forks source link

Best practices on Formatting & 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

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>