How are muscles attached to bones?

actually muscles are attached to bones by tendons