We put our modal content just before the ending body tag. If we were to put our modal content in the same container as our modal trigger content, for example, we would run the risk of our modal content not displaying across the entire viewport. This is because the modal TRIGGER content is often surrounded by elements that restrict such placement in the wider viewport (such as "position relative" etc).
It's important to remember than now the browser is following a link, whose target is our modal window whose display has now been set to "block" (and which has the display property "fixed" so it displays at the top of the VIEWPORT--wherever the window is). You can see the "link" in the broswer address bar.