echo CHtml::link('Click me', array('site/index'));
echo CHtml::image('path/to/image.jpg');
echo CHtml::textField('username', '', array('placeholder' => 'Enter your username'));
$data = array('red' => 'Red', 'blue' => 'Blue', 'green' => 'Green'); echo CHtml::checkBoxList('colors', array('red', 'green'), $data);This generates an HTML checkbox list with the name "colors", pre-selected options for "red" and "green", and options for "Red", "Blue", and "Green".