Start with the basic lessons on Chess.com itself - there's a special section for beginners that explains how the pieces move, basic strategies, and tactics. Don't jump straight into complicated material; go through the lessons in order. At the same time, play in easy mode against the computer on a low difficulty setting - this will help you cement your knowledge without pressure. At this stage, the result doesn't matter; what matters is getting used to how the pieces move and the logic of the game.
Once you understand how all the pieces move and you've studied a couple of simple combinations (like how to checkmate the king), go ahead and play against real people. Chess.com is full of players at roughly your level, so you won't be bored playing against complete beginners or experienced players (in different rating ranges). Start with fast games - like blitz or rapid, where you have less time to think and the game moves faster.
Don't get hung up on wins at the beginning - everyone loses while they're learning. Look at your games afterward, analyze your mistakes, read the tips that the site itself offers after each game. Over time you'll start seeing patterns, spotting combinations, and everything will get easier. Good luck! 😊