HTML Explained
Text Formatting
- <B>bold</B>
- <I>italics</I>
- <EM>emphasis - usually italics</EM>
- <STRONG>strong emphasis - usually bold</STRONG>
- <U>underline</U>
- <STRIKE>
strikethrough</STRIKE>
- <BIG>big print - 1 size bigger</BIG>
- <SMALL>small print - 1 size smaller</SMALL>
- <SUB>subscript</SUB>
- <SUP>superscript</SUP>
- <BLINK></BLINK>
- <CITE>citation</CITE>
- <CODE>
code</CODE>
- <KEY>key word</KEY>
- <SAMP>sample</SAMP>
- <TT>teletype</TT>
- <ADDRESS>Address</ADDRESS>
- <PRE>
pre-formatted text
</PRE>
HTML does not recognise more than one consecutive white space, so any combination of spaces, tabs, and carriage returns will just look like a single space when viewed by a web browser.
There are a couple of ways round this. One is to use the pre-formatted text tags <PRE> and </PRE> around the text. This gives you all the spacing you desire, but displays it in a fixed-width font, like a type-writer.
The alternatives:
- For a number of spaces, use the special code one after the other without angle brackets
- For carriage returns, use the <BR> tag (line break).
- For paragraph markers, use <P> and </P>.
Some additional special characters:
- Copyright © ©
- Trade mark ™ ™