Equivalent HTML Code


Bold
  • <b>text</b>
  • <strong>text</strong>
  • <span style="font-weight: bold;">text</span>
Italics
  • <i>text</i>
  • <em>text</em>
  • <span style="font-style: italic;">text</span>
Underlined
  • <u>text</u>
  • <span style="text-decoration: underline;">underline</span>
Monospaced font
  • <tt>text</tt>
  • <code>text</code>
  • <pre>text</pre>         (different formatting)
  • <font face="monospace">text</font>
  • <span style="font-family: monospace;">text</span>
Aligned to the left
  • <p align="left">text</p>
  • <div align="left">text</div>
  • <div style="text-align: left;">text</div>
Centered
  • <p align="center">text</p>
  • <div align="center">text</div>
  • <div style="text-align: center;">text</div>
Aligned to the right
  • <p align="right">text</p>
  • <div align="right">text</div>
  • <div style="text-align: right;">text</div>
Indented once
  • <blockquote>text</blockquote>
  • <div style="margin-left: 40px;">text</div>
Indented twice
  • <blockquote><blockquote>text</blockquote></blockquote>
  • <div style="margin-left: 80px;">text</div>
  • <div style="margin-left: 40px;"><div style="margin-left: 40px;">text</div></div>

Resources URL: 
notes/html/resources
Sources URL: 
notes/html/sources

See Also