The ruler is a scale below the formatting toolbar which shows the margins.
There are two set of rulers
1. Horizontal ruler and
2. Vertical ruler. Horizontal rules is used to set left and right margins of a page and vertical ruler for top and button setting.