Traditional Text and Formatting
Traditional Text and Formatting
com
Engaging Peers, Inspiring Careers!
• Text Layout
• Lists
• Text Styles
• The first kind performs text layout tasks and the second affects text’s
appearance.
The P Element
• If the end tag is not used, the beginning of the next block level element is
interpreted as the end of the paragraph.
• The align attribute is used to set the alignment of the paragraph with
respect to the page size. Values are LEFT, RIGHT, CENTER and JUSTIFY.
Example: <p align="center">
<P> tag Example
<P align=left>
This paragraph is Left Aligned.
</P>
<P align=center>
This paragraph is Centered.
</P>
<P align=right>
This paragraph is Right Aligned.
</P>
<P align=justify>
This paragraph is justified.
</P>
The BR Element
• The <br> tag inserts a single line break.
• The <br> tag is an empty tag which means that it has no end tag.
• When placed after images, the clear attribute controls how text is handled
when wrapping around those images.
• The clear attribute has four possible values: none, left, right and all.
The BR Element
• The CENTER element causes all text between its start and end tags to be
centered between the margins.
• <CENTER> Text Goes Here. </CENTER>
The HN Element
• The highest level of heading is represented by <H1> tag, the lowest by the
<H6> tag.
• <H1> This is an H1 heading. </H1>
• <H2> This is an H2 heading. </H2>
• <H3> This is an H3 heading. </H3>
• <H4> This is an H4 heading. </H4>
• <H5> This is an H5 heading. </H5>
• <H6> This is an H6 heading. </H6>
The HR Element