use yii\helpers\Html; echo Html::textarea('comment', 'Type your comment here...');
use yii\helpers\Html; echo Html::textarea('description', $product->description, ['rows' => '5', 'cols' => '50']);Description: This code will generate an HTML textarea tag with the name attribute set to "description", the initial value set to the description of the product object, and the height and width set to 5 and 50 characters respectively. Package Library: Yii Framework.