Emphasis
Emphasis can be added by making text bold or italic.
Bold
To bold text, add two asterisks **
or underscores __
before and after a word or phrase. To bold the middle of a word for emphasis, add two asterisks without spaces around the letters.
**bold text**
For example:
Please do **NOT** touch your pimples.
The output would be:
Please do NOT touch your pimples.
Italic
Text can be italicized by surrounding with either one asterisk *
or one underscore _
on each side. Parts of a word can even be italicized by surrounding the letters with one asterisk, no spaces.
_Italic text_ is *awe*some!
For example:
This avocado egg sandwich is _very_ good.
The output would be:
This avocado egg sandwich is very good.
Strikethrough
A strikethrough can be applied to text by surrounding with two tildes ~~
, like in the example below:
I did ~~not~~ build a website.
The output would be:
I did
notbuild a website.
Emphasis Combinations
Different formatting options can be combined:
**This is in bold, _italics_, ~~and strikethrough~~**
This is in bold, italics,
and strikethrough
Contribute to Docs
- Learn more about how to get involved.
- Edit this page on GitHub to fix an error or make an improvement.
- Submit feedback to let us know how we can improve Docs.
Learn Markdown on Codecademy
- Career path
Front-End Engineer
Front-end engineers work closely with designers to make websites beautiful, functional, and fast.Includes 34 CoursesWith Professional CertificationBeginner Friendly115 hours - Free course
Learn HTML
Start at the beginning by learning HTML basics — an important foundation for building and editing web pages.Beginner Friendly7 hours