When you contribute to open-source projects, your code will be reviewed by other committed developers, some of whom could turn out to be excellent mentors. So, if you are looking for a mentor to learn web development, contributing to open-source repositories can be a good way to start.