set title to be a span