Using hook_form_alter to add a label/placeholder insider a form  tag
You can specify placeholder attribute in '#attributes' array like this:

function MODULE_form_alter(&amp;$form, &amp;$form_state, $form_id) {
  if ($form_id == 'form_id') {
    $form['item']['#attributes']['placeholder'] = t('Placeholder text');
  }
}