Answer» We can use markdown to change the styles of selected text to different styles like bold, italics, blockquotes, underline, strike-through, etc. Markdown Bold:
- We can make a text bold by enclosing the text between 2 * symbols as -> **text**.
- We can also make it bold using the HTML “strong” tags.
- For example:
Method 1: *Hello* Method 2: <em>Hello</em>Output:
Hello
Hello
Markdown Italics:
- We can make a text Italics by enclosing the text in single * symbol as -> *text*.
- We can also make it in Italics using the HTML “em” tags.
- For example:
Method 1: *Hello* Method 2: <em>Hello</em>Output:
Hello
Hello
Markdown Blockquotes:
- Blockquotes are used to indicate that the enclosed text is an extended quotation. Blockquotes are written in markdown using > symbol. Multiple > can stacked together to get nested blockquote.
- Example:
> This is a blockquote. >> Nested blockquotes. >>> More nesting.Output:
This is a blockquote.
Nested blockquotes.
More nesting.
Markdown Underlined:
- We can underline a piece of text in Markdown using the HTML “ins” tag.
- Example:
<ins>This is an underlined text</ins>Output:
This is an underlined text Strike-through:
- We can strike-through a piece of text in Markdown by enclosing the text inside double ~ symbol as -> ~~text~~.
- Example:
~~The text is struck~~Output:
The text is struck
Markdown Boxed:
- “Boxed” allows us to form a box around our given piece of text to highlight its importance. It can be formed with using the “table”, “tr”, and “td” tags in conjunction, similar to using HTML tables.
- Example:
<table><tr><td>The quick brown fox jumps over the lazy dog.</td></tr></table>Output:
| The quick brown fox jumps over the lazy dog. |
Markdown Superscript and Subscript:
- Superscript or Subscript are characters that are set slighly above or below the normal line of text. We can set them using the “sup” or the “sub” HTML tags respectively.
- Example:
Subscript <sub>Example.</sub> Superscript <sup>Example.</sup>Output:
Subscript Example.
Superscript Example.
|