What is the ruling on fasting?
Fasting in Ramadan is an individual obligation (Fard ‘Ayn) upon every mature, sane Muslim who is capable of fasting.
Fasting can also be recommended (Mustahabb), such as voluntary fasting on Mondays and Thursdays, fasting on the Day of Arafah for those not performing Hajj, and fasting on Ashura.
Fasting can be prohibited (Haram), such as fasting on the two Eid days, the Day of Doubt (Yawm al-Shakk), and the Days of Tashreeq.
Some types of fasting are disliked (Makruh), such as singling out Friday or Saturday for fasting without a specific reason and fasting on the Day of Arafah for a pilgrim.
Does nosebleed during the day in Ramadan affect the validity of fasting?
A nosebleed does not affect the validity of fasting unless some of the blood reaches the body cavity or the person intentionally swallows it. In such a case, their fast is invalid, and they must refrain from eating and drinking for the rest of the day and make up for that day later.
What do you say about someone who stays up all night on Laylat al-Qadr but misses Fajr prayer?
Such a person has deprived themselves of a great reward. Performing obligatory acts is more beloved to Allah than voluntary acts. Fajr prayer is an obligation, and performing it in congregation is equivalent to worshiping for the entire night. So how can someone neglect it while striving for voluntary prayers?!
What is the ruling on tasting food while fasting?
Tasting food while fasting is disliked (makruh). However, if any part of the food reaches the body cavity (jauf), the fast becomes invalid.