Which is better?

or

James K. Polk

US president

James K. Polk

William H. Taft

US president

William H. Taft