Beijing and Shanghai are both important city in China.But there still are some differences between them.
Beijing is the capital of China,and it's the center of politics,culture,education and international communication.It located in northern China, is governed as a direct-controlled municipality under the national government, with 14 urban and suburban districts and two rural counties.
Shanghai is the biggest city of China,and it's the center of science,economy,industry,finance and exhibition.It located in the Yangtze River Delta in eastern China, Shanghai sits at the mouth of the Yangtze River in the middle portion of the Chinese coast.