ParagraphsTo set type in paragraphs in HTML, you can't use line breaks or indentations -- they won't work. Web browsers ignore line breaks or extra spaces in the source code. You need to use paragraph tags if you want to break your text into paragraphs. Paragraph code looks like this:
Some pages you will see are marked up differently, like this:
Back in the days of HTML 1 (around 1994), people used to use the <P> tag as a standalone tag, or a marker, denoting the end of a paragraph. In newer HTML, however, <P> is used as a container tag. This is the current correct way that you should use the <P> tag. This way, you can center text by using <P ALIGN="CENTER">. You can also use ALIGN="CENTER" within <H> tags. We'll learn more about that in the next lesson. Another reason to use this tag as a container is that future web technology, such as style sheets and XML, will require that container tags be closed and complete. By getting into the habit now, you won't have to redo as much of your work later. In the next section, we'll learn how to make lists in HTML. |