How to style Telegram text using HTML tags
The following HTML tags are currently supported for Telegram:
<b>bold</b>, <strong>bold</strong>
<i>italic</i>, <em>italic</em>
<u>underline</u>, <ins>underline</ins>
<s>strikethrough</s>, <strike>strikethrough</strike>, <del>strikethrough</del>
<span class="tg-spoiler">spoiler</span>, <tg-spoiler>spoiler</tg-spoiler>
<b>bold <i>italic bold <s>italic bold strikethrough <span class="tg-spoiler">italic bold strikethrough spoiler</span></s> <u>underline italic bold</u></i> bold</b>
<a href="http://www.example.com/">inline URL</a>
<code>inline fixed-width code</code>
<pre>pre-formatted fixed-width code block</pre>
<pre><code class="language-python">pre-formatted fixed-width code block written in the Python programming language</code></pre>
Example
The following post in Publer
Will look like this in Telegram
Tips & warnings
You can always preview how your message will look on Telegram beforehand.
Make sure you only use a supported HTML tag from the list above. Using an unsupported HTML tag will prevent the post from getting published.
Updated on: 03/10/2024
Thank you!