title: Xamarin Forms HTML in Label
body: <p>I am making a mobile app for my website in Xamarin Forms. In the database I have a field which contains some html.</p>
  
  <p>I am using <a href="https://github.com/matteobortolazzo/HtmlLabelPlugin" rel="nofollow noreferrer">https://github.com/matteobortolazzo/HtmlLabelPlugin</a> but I can't seem to style my html.</p>
  
  <p>This is my code:</p>
  
  <pre><code>    public string Body { get; set; }
  
      public string BodyStyled =&gt; $"&lt;!DOCTYPE html&gt;&lt;html&gt;" +
                                      $"&lt;head&gt;" +
                                          $"&lt;style&gt;" +
                                              $"p {{margin-bottom: 5px;}}" +
                                          $"&lt;/style&gt;" +
                                      $"&lt;/head&gt;" +
                                      $"&lt;body&gt;" +
                                          $"{Body}" +
                                      $"&lt;/body&gt;" +
                                  $"&lt;/html&gt;";
  
                  &lt;htmlLabel:HtmlLabel
                      Grid.Row="0"
                      VerticalOptions="Center"
                      TextColor="{ DynamicResource BaseTextColor }"
                      Text="{ Binding Detail.BodyStyled }"/&gt;
  </code></pre>
  
  <p>The HTML get executed but p {margin-bottom: 5px;} gets printed above the text. </p>
  
  <p>How can I solve this? Thx!</p>