How Do Travel Miles Work on Credit Cards? A Beginner’s Guide

I’m new to travel credit cards and trying to understand how travel miles work. How are miles earned and redeemed, and is it worth using a travel card over a regular rewards card? I’d appreciate any beginner tips or advice on making the most of travel miles.