Skip to the content.

Common Elements

Formatting elements were designed to display special types of text:

<b> - Bold text
<strong> - Important text
<i> - Italic text
<em> - Emphasized text (italics?)
<mark> - Marked text (highlighted)
<small> - Smaller text
<del> - Deleted text (strike through)
<ins> - Inserted text (italics?)
<sub> - Subscript text
<sup> - Superscript text

Italics

Italics is for emphasized text in a doc - <em> tag

Strong, Mark and Bold

The <strong> tag is used to define text with strong importance. The content inside is typically displayed in bold.

TIP

Tip: Use the <b> tag to specify bold text without any extra importance!

NOTE

According to the HTML5 specification, the <b> tag should be used as a LAST resort when no other tag is more appropriate. The specification states that headings should be denoted with the <h1> to <h6> tags, emphasized text should be denoted with the <em> tag, important text should be denoted with the <strong> tag, and marked/highlighted text should be denoted with the <mark> tag.

Underline

The <u> tag represents some text that is unarticulated and styled differently from normal text, such as misspelled words or proper names in Chinese text. The content inside is typically displayed with an underline. You can change this with CSS (see example below).

Tip: Avoid using the <u> element where it could be confused for a hyperlink!

Highlight

<mark> to highlight

Small

This is what small looks like.

Note

This doesn’t seem to work in the github native markdown viewer

Strikethrough

This is what strikethrough looks like.

Grammer

How to Use Em Dashes (—), En Dashes (–) , and Hyphens (-) More on above: https://news.ycombinator.com/item?id=43497719