This can be a bit tricky, as the word "title" in English can be used for both people and things. In French, however, the masculine "titre" is used for both:
* Titles of books, movies, songs, etc.: Le titre du livre est "Le Petit Prince". (The title of the book is "The Little Prince")
* Titles of nobility: Le titre de duc (The title of Duke)
* Titles of jobs: Le titre du poste (The title of the position)
So, regardless of the context, "titre" is always masculine.