how to add text on either side of vertical line

I would like to put a vertical line down just a small section of a webpage and then add text on either side of it. Can you instruct on how to do that?