How to add outer div to Profile2 profile including link set in #prefix
The Profile2 modules implements a profile2_form_alter hook that you can implement in a module. Say you have a module called kelley_profile2, then the function you want to implement is

/**
 * Implements hook_form_profile2_form_alter().
 */
function kelley_profile2_form_profile2_form_alter(&amp;$form, &amp;$form_state) {
  // Check profiles key exists in $form_state.
  if (array_key_exists('profiles', $form_state)) {
    // Iterate through each profile type and add prefix.
    foreach ($form_state['profiles'] as $type =&gt; $profile) {
      $form['profile_' . $type]['#prefix'] = '&lt;a id="profile-' . $type . '"&gt;&lt;/a&gt;';
    }
  }
}