Creating Links and File Includes with Drupal is not too difficult, so long as you can remember the basics. So I wrote them down to remember them.
Creating a link with HTML attributes.
<?php
$attributes = array(
'attributes' => array(
'class' => 'css-clss',
'rel' => 'lightbox',
'title' => 'My Title',
'id' => 'unique-id',
),
);
$link = l($title, $link, $attributes);
?>