What is the difference between:
1. Have you been waiting long?
2. How long have you been waiting?
Are the two of them correct?
Welcome to the forum. :hi:
First, please note that I have changed your thread title so it is unique and relevant to this post. I also removed lots of non-functioning code (I think you were trying to use different colours) and enlarged the font so it is readable. Please post in the default font size and colour. I have also numbered your sentences so it is easier for us to respond.
Sentence 1 is specifically asking if the person has been waiting
for a long time. It is a "closed question" - it can be answered with a simple "Yes" or "No". Sentence 2 is asking for the amount of time the person has been waiting. It is an open question - it needs a full answer, containing information provided by the respondent.
Q: Have you been waiting long?
A: Yes/No.
Q: How long have you been waiting?
A: Five minutes/Two hours/Three days.