Why is my div nesting in the previous div, seemingly unnecessarily? (This should be a quick review as there's not much code)

Please can anyone assist with why my div of class “methodology” seems to be nesting in the previous div (of class "codecademy_requirements)?

<!DOCTYPE html>
    <title>Smasha's Cheatsheet</title>
    <link href="./css/styles.css" type="text/css" rel= "stylesheet">

        <h1>Smasha's Cheatsheet</h1>
    <div class="initial_notes">
        <h2>These are the things I'd like to include:</h2>
            <li>How to link the Stylesheet</li>
            <li>What else to include in the head element</li>
            <li>Quick notes on the use of Display Command, ie relative, absolute etc</li>
            <li>Quick notes on the use of the Position Command, ie block, inline-block etc</li>
            <li>Potentially notes on how to import fonts</li>

    <div class="codecademy_requirements">
        <h2>These are the requirements listed on Codecademy site for this Project:</h2>
            <li>To complete this project, you should have completed the codecademy Introduction to HTML course through the HTML tables lesson, and lessons in Learn CSS: Selectors and Visual Rules.</li>
            <li>Your project should document at least one HTML or CSS topic. In our example project, we documented the tags and attributes used in HTML tables layouts, but you can choose any HTML or CSS topic that you’ve learned so far—the sky is the limit!

                Possible topics could be:
                HTML Tables, Other HTML tags, CSS selectors and specificity, Common CSS properties
                If you choose to document HTML tags, open the hint to see how to include HTML tags as text in your code.</li>
                Your site uses HTML tables to display the documentation. Be sure to label the columns in your HTML.
                In our example site, we used tables with columns for:
                The tag or attribute name
                The actual formatted tag (eg. <table>)
                A description of what to use the tag for.
                You can use these same columns or choose your own.</li>
                Your site should utilize a custom color scheme. You can use any of the named CSS colors.</li>
                Your site should use custom styles for any code such as HTML tags (like h1) or CSS properties or values (like font-family). Represent code using a monospace font family and a different background color.</li>
                Great work! Visit our forums to compare your project to our sample solution code. You can also learn how to host your own solution on GitHub so you can share it with other learners!
                Your solution might look different from ours, and thats okay! There are multiple ways to solve these projects, and youll learn more by seeing others code.
                If youd like to extend your cheat sheet, keep adding new topics to it as you continue to learn more HTML, CSS, and more. As you become more advanced with CSS, youll also be able to improve the styling and layout of the cheat sheet itself.</li>
    <div class="methodology">
        <h2>Ideas of how to proceed with this project:</h2>
            <li>Set up an empty table at first</li>
            <li>Move all of these notes to footer (to come after table)</li>
            <li>Fill contents of table</li>
````Preformatted text`

h1 {
color: rgba(220, 20, 169, 0.9);
text-transform: uppercase;

.initial_notes {
    background-color: cornflowerblue;

.codecademy_requirements {
    background-color: seagreen;

.methodology {
    background-color: lightsalmon;

I am currently completing the “Challenge Project: Complete Your Own Cheatsheet” and had decided to lay out a few notes prior to commencing the task.


In your html file, you have:

                In our example site, we used tables with columns for:
                The tag or attribute name
                The actual formatted tag (eg. <table>)
                A description of what to use the tag for.
                You can use these same columns or choose your own.

If you look at your screenshot, you will see that the text <table> is not displayed. The browser interprets this as the html tag for table, but that isn’t your intention. You didn’t want to insert a table. You wanted to write the text <table>
You can escape this by editing the text

The actual formatted tag (eg. <table>)
The actual formatted tag (eg. &lt;table&gt;)
Now the sentence will show up as: “The actual formatted tag (eg. <table>)”

Have a look at


Legend, thanks so much!