Any number of spaces in your input file are treated as a single space by LaTeX, it also regards the end of each line as a space between words. These are LaTeX commands and they describe the structure of a document. There are some LaTeX commands that must appear in every document. This command specifies the predefined class to which the document belongs. Here is some text.
Most documents have a title.
The exact appearance of the title varies depending on the document class. In report and book classes the title appears on a page of its own. It is similar to article , except that it contains chapters and the title appears on a page of its own. Page layout is adjusted assuming that the output will eventually be used to print on both sides of the paper. Intended for the production of personal letters.