简体   繁体   中英

Render html tag in a label

I want to render a body tag in a label as textual element

<label for="message-text" class="col-form-label">
  <strong>Copy and paste this code in Google Tag Manager as custom html or paste this code before </body> tag on your website page(s).</strong>
</label>

But how can I do this?

Use this &lt; for < , and &gt; for >

Full List

DEMO

 <label for="message-text" class="col-form-label"> <strong>Copy and paste this code in Google Tag Manager as custom html or paste this code before &lt;/body&gt; tag on your website page(s).</strong> </label> 

You cannot do this. You should only have one <body> tag, which encompasses all html outside of the <head> element and a direct descendant of the <html> element

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM