Okay, what if the source has no author? That’s a plot twist! In that case, you use the title of the article or book in the in-text citation. If the title is long, use a shortened version (just the first few words).
For example: (“How to Survive” 12). No author, no problem. You just become the detective of your own citation.