Format | Markdown | HTML |
---|---|---|
Headings |
#Heading 1 |
<h1>Heading 1</h1> |
Heading 1 |
||
## Heading 2 |
<h2>Heading 2</h2> |
|
Heading 2 |
||
### Heading 3 |
<h3>Heading 3</h3> |
|
Paragraphs |
Paragraphs are separated by a blank line. This is another paragraph. |
<p>Paragraphs are separated by a blank line</p> |
Line break |
Two spaces at the end of a line inserts a line break. |
Two spaces at the end of a line <br> |
Font |
**bold** __bold__ |
<strong>bold</strong> |
*italic* _italic_ |
<em>italic</em> |
|
**_bold and italic_** |
<strong><em>bold and italic</em></strong> |
|
' |
<code>monospace</code> |
|
~~ |
<s>strikethrough</s> |
|
Link |
[Link text](http://www.example.com) |
<a href="http://www.example.com">Link text</a> |
Image |
 |
<img src="http://www.mycompany.com/image.png" alt="Alt-text"> |
Horizontal rule |
--- |
<hr /> |
Ordered list |
1. Item 1 1. Item 1 1. Item 1 |
<ol> |
Unordered list |
* Item + Item - Item |
<ul> |
Table |
| Column 1 | Column 2 | Column 3 | |
<table> |
Preformatted text block |
''' { Code block }''' |
<pre> |
Blockquote |
> This is a blockquote |
<blockquote> |
Center |
N/A |
<p style="text-align:center" >centered text</p> |
Except as otherwise noted, the content of this page is licensed under the Creative Commons Attribution 4.0 License, and code samples are licensed under the Apache 2.0 License. For details, see the Google Developers Site Policies. Java is a registered trademark of Oracle and/or its affiliates.