For the sake of using less characters in a title I often change a question like:
How do I learn to ride a bike?
to:
Learning to ride a bike?
I know these two constructs are not identical in meaning but the intention is to use one or other as a title summarizing a Stack Exchange question about a problem encountered when learning to ride a bike.
Are both grammatically correct i.e. can a question begin with a gerund?