Lesson 3: Aligning Text
Overview
Aligning text helps in the organization of the Web page using the following tags and attributes align text, create paragraph breaks, line breaks, and non-breaking spaces.
Learner Outcomes
At the end of this lesson students will have a basic understanding of organizing the Web page and the effects on its appearance.
Activities
- Paragraph breaks
- HTML does not recognize the returns that you enter when typing so you must specify where you want each paragraph.
- Type <P> in front of each paragraph on your Web page. It is a good idea to end the paragraph but is not always necessary.
- To end the paragraph type </P>
- Aligning Text
- Align is an attribute found inside a tag. To use the align attribute type the following:
- <P Align="direction"> where direction is either left, right, or center.
- Line Breaks
- Line breaks specify where each line of text begins.
- <BR> appears in front of each line of text.
- Non-Breaking Spaces
- Web browsers usually ignore extra spaces you add. In order to show additional spacing you must add a code for the blanks. The following code must be typed for each space:
- add as many as are needed for your spacing.