How to get rid of these spots?

How do I get rid of these spots in baby’s scalp without leaving her bald? They feel a little crusty and I tried to gently scratch them after a bath but I noticed it came off with hair.