As the title my question is how they earn bitcoin by mining?
Is it only from the block rewards or they also get btc for the validation of transactions?
Miners earn both from block rewards and
all the transaction fees paid
in the transactions they selected and organized into a block