How does a container div work, and how is it coded?

I am working on a website, and have always centered them the same way, with tables. This time, I would like to familiarize myself with divs and css style sheets.

What is the code to create a container div? How you you place divs inside that container?
2 answers 2