Risk factor is some variables which are responsible for developing a disease in us. For example, there are various risk factors for developing heart disease like smoking, high LDL, physical activity, diabetes, high caloric diet, etc.
Diet which is having a high amount of LDL or bad cholesterol raises our body fat and increases the risk of developing heart disease. Therefore a diet that contains and supplies an extra amount of such fat is a risk factor for heart disease.