Adding placeholders to the user login block's username and password input fields
In twig it's difficult to target a specific input field. You can do this more efficient in a form alter hook, which you can use in themes too:

mytheme.theme

function mytheme_form_user_login_form_alter(&amp;$form, $form_state) {
  $form['name']['#placeholder'] = t('placeholder for username');
}