Which does the following sentence contain?

Walking by the river is our favorite pastime.

participle
infinitive as subject
gerund as subject
prepositional phrase as adjective

I'm confused with whether it is a participle (a verb acting as an adjective) or a prepositional phrase as an adjective.

1 answer

Neither.

Read up on gerunds.