To create a text box for your type to fit within, press T to select the Type tool, then click-and-drag out the area you want for your text box. Your type will now fit within that box. When you're finished entering your text, just press Enter to get out of the text bounding box.