8.5 Emphasis and Style
There are a number of different Markdown syntaxes that we can use to add style and emphasis to specific parts of our document. Below are a few examples.
Italics
You can make text italicized by encasing the text in a single asterisk *
or underscore _
.
Input
*This is italicized*
_This is also italicized_
Output
This is italicized
This is also italicized
Bold
You can make text bold by encasing the text in two asterisks **
or underscores
__
.
Input
**This is bold**
__This is also bold__
Output
This is bold
This is also bold
Bold and Italics
If you want to make text both bold and italicized you can encase the text with three asterisks ***
or underscores ___
.
Input
***This is bold and italicized***
___This is also bold and italicized___
Output
This is bold and italicized
This is also bold and italicized
NOTE When italicizing or bolding characters within a string of text, it's better to use an asterisk *
rather than an underscore _
. For example: Biology *is* awesome NOT Biology _is_ awesome