Are you asking in general? That’s one of the first things a student learns in middle school English is that the title is all capitalized except for words like “the, to, and, or”, unless those words are at the beginning of the title.
This site looks like it has the rules more formalized, if you’re interested. I think it’s something most native English writers do without thinking by adulthood.
https://capitalizemytitle.com/