In this post, we will see how we can underline a text in markdown.
Markdown does not have any syntax to underline, however, we can use the <u>
HTML tag to underline any text in our markdown documents.
Underline a text using the <u>
HTML tag
hello, this text is <u>underline</u> in markdown
Output:
hello, this text is underline in markdown
Using <ins>
tag
We can also use the <ins>
HTML tag to underline in a markdown document.
The <ins>
tag is the HTML insert tag and it displays as underlined. And so we can use it for underlining.
hello, this text is <ins>underline</ins> in markdown using ins tag.
Output will be
hello, this text is underline in markdown using ins tag.
Conclusion:
Between the <u>
and <ins>
tag, it is better and is recommended to use the <u>
tag, because it is exactly what it does.
Related Articles:
How to write superscript and subscript in markdown
How to do text highlight in markdown
How to change image size in markdown in GitHub
Checkbox inside GitHub Markdown Table
How to make horizontal line in markdown