HTML Text Formatting
HTML Text Formatting
This text is bold
This text is big
This text is italic
This is computer output
This is subscript and superscript
|
Try it yourself »
|
HTML Formatting Tags
HTML uses tags like <b> and <i> for formatting output, like bold or italic
text.
These HTML tags are called formatting tags.
Refer to the bottom of this page for a complete reference.
 |
Try it Yourself - Examples |
Text formatting
This example demonstrates how you can format text in an HTML document.
Preformatted text
This example demonstrates how you can control the line breaks and spaces with the
pre tag.
"Computer output"
tags
This example demonstrates how different "computer output" tags
will be displayed.
Address
This example demonstrates how to write an address in an HTML document.
Abbreviations and acronyms
This example demonstrates how to handle an abbreviation or an acronym.
Text direction
This example demonstrates how to change the text direction.
Quotations
This example demonstrates how to handle long and short quotations.
Deleted and inserted text
This example demonstrates how to mark a text that is deleted or inserted to a
document.
Text Formatting Tags
| Tag |
Description |
| <b> |
Defines bold text |
| <big> |
Defines big text |
| <em> |
Defines emphasized text |
| <i> |
Defines italic text |
| <small> |
Defines small text |
| <strong> |
Defines strong text |
| <sub> |
Defines subscripted text |
| <sup> |
Defines superscripted text |
| <ins> |
Defines inserted text |
| <del> |
Defines deleted text |
| <s> |
Deprecated. Use <del> instead |
| <strike> |
Deprecated. Use <del> instead |
| <u> |
Deprecated. Use styles instead |
"Computer Output" Tags
| Tag |
Description |
| <code> |
Defines computer code text |
| <kbd> |
Defines keyboard text |
| <samp> |
Defines sample computer code |
| <tt> |
Defines teletype text |
| <var> |
Defines a variable |
| <pre> |
Defines preformatted text |
| <listing> |
Deprecated. Use <pre> instead |
| <plaintext> |
Deprecated. Use <pre> instead |
| <xmp> |
Deprecated. Use <pre> instead |
Citations, Quotations, and Definition Tags

Need an easy way to get data into XML, or transform XML to another format?
MapForce lets you map XML data to/from any combination of XML, database, flat file, Excel 2007, XBRL, or Web services data.
Then it transforms data instantly or auto-generates royalty-free data integration code for recurrent conversions.
New features in Version 2010!
Download a free, fully functional 30-day trial to experience the following features:
- Easy-to-use, graphical data mapping interface
- Instant data transformation
- XSLT 1.0/2.0 and XQuery code generation
- Java, C#, and C++ code generation
- Advanced data processing functions
- Support for all major relational databases including SQL Server, IBM DB2, Oracle, and more
- Visual Studio & Eclipse integration
Download a fully-functional trial today!
|
|
|
|