- Txt2html is a Perl program that converts plain text to HTML. It uses the HTML::TextToHTML perl module to do so. Look at the README file. What is HTML::TextToHTML? HTML::TextToHTML is a Perl module that converts plain text to HTML. It supports headings, lists, some tables, simple character markup, and hyperlinking, and is highly customizable.
- Free online Text/Word to HTML converter with built-in code cleaning features with escapes or unescapes HTML tags. Hypertext Markup Language (HTML) is the standard markup language for creating web pages and web applications.
text2html - convert plain text to HTML
Free online HTML code converter. Convert any document to clean HTML. This free online code formatter will help you compose your documents quickly and easily. You can preview and adjust the visual document and the source code side by side. Edit any of these fields and the changes will be reflected in the other one instantly as you're typing.
version 2.07
text2html [options...] [file ...]
The text2html
utility converts text to HTML. Text can come from standard input or files listed on the command line.
The available options are outlined in HTML::FromText. The option syntax is slightly different. Options are prefixed with two dashes (--
) and may have an option value following an equals sign (=
). The default value is on (<1>).
Convert the README
file using paras
and blockcode
.
Convert a file called --stupid-name
.
Convert text on standard input.
Text 2 HTML Converter
Convert text on standard input but turn off metachars
.
The text2html
utility exits 0 on success, and >0 if an error occurs.
perl(1), HTML::FromText(3).
Ricardo SIGNES <rjbs@cpan.org>
Casey West <casey@geeknest.com>
Gareth Rees <garethr@cre.canon.co.uk>
This software is copyright (c) 2003 by Casey West.
This is free software; you can redistribute it and/or modify it under the same terms as the Perl 5 programming language system itself.
To install text2html, copy and paste the appropriate command in to your terminal.
For more information on module installation, please visit the detailed CPAN module installation guide.
HTML contains several elements for defining text with a special meaning.
Example

This text is bold
This text is italic
This is subscript and superscript
Try it Yourself »
HTML Formatting Elements
Formatting elements were designed to display special types of text:
<b>
- Bold text<strong>
- Important text<i>
- Italic text<em>
- Emphasized text<mark>
- Marked text<small>
- Smaller text<del>
- Deleted text<ins>
- Inserted text<sub>
- Subscript text<sup>
- Superscript text
HTML <b> and <strong> Elements
The HTML <b>
element defines bold text, without any extra importance.
Html To Plain Text Converter
Example
Try it Yourself »The HTML <strong>
element defines text with strong importance. The content inside is typically displayed in bold.
Example
Try it Yourself »HTML <i> and <em> Elements
The HTML <i>
element defines a part of text in an alternate voice or mood. The content inside is typically displayed in italic.
Tip: The <i>
tag is often used to indicate a technical term, a phrase from another language, a thought, a ship name, etc.
Example
Try it Yourself »The HTML <em>
element defines emphasized text. The content inside is typically displayed in italic.
Tip: A screen reader will pronounce the words in <em>
with an emphasis, using verbal stress.
Example
Try it Yourself »HTML <small> Element
The HTML <small>
element defines smaller text:
Word To Html Converter

Example
Try it Yourself »HTML <mark> Element
The HTML <mark>
element defines text that should be marked or highlighted:
Example
HTML <del> Element
The HTML <del>
element defines text that has been deleted from a document. Browsers will usually strike a line through deleted text:
Example
Try it Yourself »HTML <ins> Element
The HTML <ins>
element defines a text that has been inserted into a document. Browsers will usually underline inserted text:
Example
HTML <sub> Element
The HTML <sub>
element defines subscript text. Subscript text appears half a character below the normal line, and is sometimes rendered in a smaller font. Subscript text can be used for chemical formulas, like H2O:
Example
Try it Yourself »HTML <sup> Element

The HTML <sup>
element defines superscript text. Superscript text appears half a character above the normal line, and is sometimes rendered in a smaller font. Superscript text can be used for footnotes, like WWW[1]:
Example
Try it Yourself »HTML Exercises
HTML Text Formatting Elements
Tag | Description |
---|---|
<b> | Defines bold text |
<em> | Defines emphasized text |
<i> | Defines a part of text in an alternate voice or mood |
<small> | Defines smaller text |
<strong> | Defines important text |
<sub> | Defines subscripted text |
<sup> | Defines superscripted text |
<ins> | Defines inserted text |
<del> | Defines deleted text |
<mark> | Defines marked/highlighted text |
For a complete list of all available HTML tags, visit our HTML Tag Reference.
