use spans and close them properly