Margins are used to create space between different elements on web pages. If you set the margins, then there is a set distance between that element and everything else on the page. Margins are a great property to use to create negative space in between elements.