Skip to content

Latest commit

 

History

History
42 lines (29 loc) · 908 Bytes

img.md

File metadata and controls

42 lines (29 loc) · 908 Bytes

HAPEL Core Method Reference


<img ...>

Description

Creates a <img> html tag.

img($src, $alt, $class, $id, $style, $data, $attr);

###Parameters

Parameter Required Default
$src no null
$alt no null
$class no null
$id no null
$style no null
$data no null
$attr no null

Return Values

string

Example

Usage:

echo img('myImage.jpg','altText','myClass');

Result:

<img src="myImage.jpg", alt="altText" class="myClass">