The command \pagestyle controls page numbering and headings. It should always go between the \documentclass{article} and the \begin{document} commands. It can take the following forms:
\pagestyle{plain} is the default, which puts the page
number at the center of the bottom of the page and provides no
headings.
\pagestyle{empty} provides neither page numbers nor
headings.
\pagestyle{headings} will provide page numbers and
headings from any \section's that you are using.
\pagestyle{myheadings} will provide page numbers and
custom headings.
These commands can also be applied to a single page using \thispagestyle instead of \pagestyle.
Practice: Prepare two documents entitled format1.tex and
format2.tex containing any text that you want and using the
first two different page styles.