The title of the document is the first line that's formatted into a heading. This is usually the first line of the document. You can change the title directly in the document by changing this line.
For example in the document below, the title of the document is Requirements Spec:
If you then change the first header to Other Specs, the document title will reflect this change: