Sunday, 11 August 2013

HTML functions?

HTML functions?

I have a repeated HTML code, like:
<figure class="print">
<a href="#">
<img src="images/5.png" alt="" />
<dl>
<dt>Client</dt>
<dd>Envato</dd>
<dt>Role</dt>
<dd>Print</dd>
</dl>
</a>
</figure>
Is there a smart way to make a 'function' out of it (that accept the
captions and image as parameters), or do I need to repeat that code so
many times?

No comments:

Post a Comment