Here is an example in which the margins are set first in the BODY tag, with a LEFTMARGIN of 1in and a RIGHTMARGIN of 5in.
 
Within this DIV (division) margins are set at LEFTMARGIN=2in and RIGHTMARGIN=4in. An implicit paragraph inherits the same margins.

An explicit paragraph inherits the same margins.

A paragraph can contain its own margin settings that override those of the DIV.

Ending the P tag returns to the DIV's margins.
Ending the DIV returns to the BODY's margins.