Houston is one of the top cities for happiest young professionals, but the Bayou City isn't the top city in the Lone Star State.

San Antonio topped Texas cities by ranking 10th, according to a survey by CareerBliss. Irving, which is the home of Exxon, made the list at 13th, and the Dallas-suburb of Plano was ranked 18th, one spot behind New York City.

Los Angeles, San Jose and Sunnyvale, Calif., were the top three. California had six cities inside of the top 10, including San Diego, Irvine and San Francisco.

The cities were ranked based on 10 key factors: work-life balance, one's relationship with bosses and co-workers, the work environment, job resources, compensation, growth opportunities, company culture, company reputation, daily tasks and job autonomy.

"The new generation of young pressionals not only finds happiness at work important – they demand it," Heidi Golledge, CareerBliss chief executive officer, told Forbes magazine. "If a company wants to find and retain the best talent, they need to work on building a culture of happiness within their organization."

Houston has made a variety of economic and career surveys over the past year as the city's energy industry helped buoying the tepid economy. The city also took home Forbes crown as the coolest city in the U.S.

If you want to read more about why each city made the list, click here to read the Forbes story.