Tuesday, November 6, 2007

Creating a web page with HTML – Text Formatting

TEXT FORMATTING
Text formatting enables you to design your text like bold, italic or underlined, align your text to right, left or center and you will also be able to manipulate the fonts used in the web page.

TEXT ALIGNMENT
Text alignment feature allows you to align text against the left margin, right margin or center. All the major browsers support the text and element alignment attributes.

Alignment of Individual Elements
The ALIGN attribute is used to align individual heading or text. It has only three values.LEFT, RIGHT and CENTER. Always remember to keep in mind your Web page design before using any tag and it’s attribute.


Block Alignment
Block alignment of text is done using the tag. This tag stands for division and has many attributes associated with it. The tag is used to align a block of text, and all that comes within the and is affected by this element. Using the tag you can align i.e., Paragraph, images and headings. A major advantage of this tag is that by using it once you are able to align a whole lot of text unlike the ALIGN tag. You can align tag to the values of LEFT, RIGHT, and CENTER by using ALIGN within the tag.

CHARACTER STYLES
At this stage of your knowledge of web authoring, it is important to know what are character styles and how they are used in a web page. Character style tags are those which are used to display text within HTML elements. For example, to make text bold or underlined. You can manipulate text appearance using either logical style or physical style. Let’s begin with logical style tags.

Logical Styles
Logical style text tags are used to define the way the text is to be used in a particular context. They are mostly used where the developer need to display a quote, a definition or emphasize on a word.
If the text using a logical tag appears normal in your browser then it means that the browser does not support that logical style tag. Each browser may interpret these tags very differently. Due to this unpredictable nature of the logical tags, it is wise not to depend on them

Physical Styles
Physical tags are mainly used for formatting text like displaying text as bold, underline or italic. Unlike the logical they are much more stable since they are not browser dependent. They are displayed exactly as you define them while writing your HTML code.

Article Source: http://www.superfeature.com