HTML Text Formatting
HTML Text Formatting
Conveying a message is only half of the art of creating HTML documents. One should also consider the
aesthetics of the document so that if the document will be launched in the internet for public access,
readers will be more enticed to view the document. Designing the look and feel of the page starts with
the mastery of the Text Formatting Tags. The following are the most common used for formatting text in
HTML documents.
Attributes:
Output:
BDO- defines the direction of text display: left ->right or right > text
Example: This contains <bdo dir=”rtl”> 12345 </bdo> text
Output:
*Deprecated – not recommended for use. Tag is being phased-out. An alternative way of defining the
said attribute is recommended (Cascading Style Sheets).
NESTING TAGS
To combine the effects of one type of tag with another, simply enclose the container tag in
another container tag.
REMEMBER:
The tags should be consistent in its structure. Make sure that all levels of the nest are properly arranged.
Though it will not necessarily result to an error in display, it is best to keep the HTML tags neat so when
something goes wrong, the problem can be easily traced.
ACTIVITY: