Front-End Basics

A Page <div>ided

A worked example using <div> for sectioning content and 'margin:auto' for centering.

Front-End Basics

Sectioning Using HTML and Auto Centering Content

We saw that you can style the <body> tag to contain your content. In this tutorial, we'll see a better way.