// create a text input element with a label $textElement = new Zend_Form_Element_Text('username'); $textElement->setLabel('Username:'); // render the element in the form $form = new Zend_Form(); $form->addElement($textElement); echo $form;In the above example, we created a text input element named 'username' and set its label to 'Username:'. We then added the element to a form and rendered it. Package Library: Zend Framework.