When dealing with a webpage, we must understand the DOM(document object model). Siimpy put the dom allocates every element of your html file a certain amount of space and encapsulates it in a box.
Once this is understood, then we can edit these as we see fit. We should also know how the DOM is set up:
with this we are ready to go into our file and style our page.