How to display label and field output inline I want to display same line label and fields in drupal 8. But by default it's showing field down and label up.

I'm using suffix and prefix it works. 
How can I display it without suffix and prefix?

 $form['doc_date'] = array(
'#type' =&gt; 'date',
'#required' =&gt; TRUE,
'#date_date_format' =&gt; 'd-m-Y', 
'#default_value' =&gt; (isset($record['doc_date']) &amp;&amp; $_GET['num']) ? $d_date:'',
  '#attributes' =&gt; array('type'=&gt; 'date', 'min'=&gt; '-180 days', 'max' =&gt; date('d-m-Y') ),
  '#prefix' =&gt; '&lt;tr&gt;&lt;td&gt;&lt;table&gt;&lt;tr&gt;&lt;td class="tdtext_form_cre"&gt;Document Date : &lt;span class="mand"&gt;*&lt;/span&gt;&lt;td&gt;',
'#suffix' =&gt; '&lt;/td&gt;&lt;/tr&gt;&lt;/table&gt;&lt;/td&gt;&lt;/tr&gt;',
);
According to default field.html.twig file template which is use to render fields, you have to set #label_display =&gt; 'inline'
and #title =&gt; 'Your label'
Most of themes render inline label and content when class field--label-inline exist, but it is possible that you remove this css style from your theme.