<div >
<a href="<?=site_url()?>"><?=img('logo.png',array('class'=>'logo'))?></a>
</div>
I want to add an ALT TAG for logo.png
thanks
<div >
<a href="<?=site_url()?>"><?=img('logo.png',array('class'=>'logo'))?></a>
</div>
I want to add an ALT TAG for logo.png
thanks
If you are using code igniter framework you can do it like this
From The Codeigniter Documentation
$image_properties = array(
'src' => 'images/picture.jpg',
'alt' => 'Me, demonstrating how to eat 4 slices of pizza at one time',
'class' => 'post_images',
'width' => '200',
'height' => '200',
'title' => 'That was quite a night',
'rel' => 'lightbox',
);
img($image_properties);