Coughing up blood is also called hemoptysis and the first thing to determine is where is the blood coming from - lungs, stomach, nose, or throat. It could be an infection or irritation of the airways but there is a chance it could be something more serious such as lung cancer. You need to get it tested soon.
Good luck
Hi there. The various causes of hemoptysis in adults are bronchitis, bronchiectasis, TB, necrotizing pneumonia, primary lung cancer. Massive hemoptysis common causes are bronchiectasis, tuberculous and other pneumonias and bronchogenic carcinoma. Dizziness could be due to blood loss causing hypotension. This needs to be investigated immediately by a pulmonologist since it could be serious. Management would depend on the diagnosis. Take care.