Any shape can contain text in Illustrator, including open paths. In addition, Illustrator can wrap text outside objects. Type containers can have strokes and fills to customize their appearance.
Just as text can be placed inside objects, Illustrator can wrap text around objects and paths. You need to keep in mind a few important concepts: