Adding notes to a custom form I have created a custom form and have put in some notes but I am wondering whether it's the correct 'Drupal' way. I have added the notes using the following format:

  $form['notes'] = array(
    '#markup' =&gt; 'A few notes. 
      &lt;ul&gt;
        &lt;li&gt;Item i&lt;/li&gt;
        &lt;li&gt;Item ii&lt;/li&gt;
        &lt;li&gt;Item iii&lt;/li&gt;
         &lt;ul&gt;'
   )
You could use the preinstalled theme item_list:

  $form['notes'] = [
    '#theme' =&gt; 'item_list',
    '#title' =&gt; $this-&gt;t('A few notes.'),
    '#list_type' =&gt; 'ul',
    '#items' =&gt; ['Item i', 'Item ii', 'Item iii'],
  ];


See https://api.drupal.org/api/drupal/core%21modules%21system%21templates%21item-list.html.twig/8.5.x