Smart HTML titles