Once you know how to move and attack, then you need to know how to avoid enemy attacks. The way to do this is with either shielding or dodging.
However, over time it shrinks down. You can’t keep it up forever!
In addition to shielding, you can dodge at any time. You can also use these with the shield button.
Try to use these moves against opposing attacks whenever you can, as they may just save your life.