To add a contact form in Drupal 8, you can follow these steps:
1. Login to your Drupal 8 site and go to the “Structure” section.
1. From the “Structure” section, click on “Contact forms”.
1. In the “Contact forms” section, click on the “Add contact form” button.
1. Enter the name of the contact form and fill in the other fields as required.
1. Once you have filled in all the details, click on the “Save” button to create the contact form.
1. After creating the form, you can click on the “Edit” button to edit the form fields, add or remove fields, and customize the form options.
1. To add the contact form to a page or block, go to the “Content” section and create a new page or block.
1. In the page or block content, add the contact form using the “Add Contact Form” button.
1. Publish the page or block to display the contact form on your Drupal 8 site.