TheWebsEye.com HTML tutorial



HTML TUTORIAL HTML EDITORS HTML BOOKS HTML RESOURCES



Formatting text

Web designers now usually use CSS to separate the formatting of the text from the layout, however the following text formatting tags are still commonly used.

open online HTML editor
Online editor Works only in IE - If you use another browser you can Download Web Page Teacher.

<FONT> - you can format the font face, size and color with the FONT tag. It is important to remember that not all browsers have all fonts installed, so it is wise to design your pages with standard fonts, and use graphics for anything fancy. You should also specify a second font supported by all browsers, in case your first choice is not available on the visitor's browser - example, however formatting with CSS is becoming more common.

<SPAN> - used as a 'container' for other HTML elements but without the paragraph breaks before and after the <SPAN> element - so it can be used in the middle of a line. This is especially useful when using CSS (cascading style sheets) to format your text - example.

<B> - used to make text bold example.

<U> - used to underline text example.

<I> - used for italics text example.

<STRONG> - also used to make text bold example.

<SUP> - used to display text as superscript, and in a smaller font than the surrounding element. For example - TM - example.

<SUB> - used to display text as subscript, and in a smaller font than the surrounding element. For example - 2 - example.

<!-- comment --> - used to "comment out" text that should not be displayed in the browser. This is useful for web designers so that they can add comments or reminders to certain parts of their web page code - example.