In a Web page, you can add different types of text elements to the HTML document. HTML documents are divided into paragraphs. You can organize text on your Web page by creating and aligning paragraphs. When you do not want a full paragraph break, you canse use line breaks to keep lines of text adjacent. When you format text with heading tags, you can create large, bold text and specify a range of sizes. Heading 1 is the largest and Heading 6 is the smallest. You can organize text items into ordered and unordered lists. Unordered lists have items that are indented and bulleted. Ordered lists have items that are indented and numbered or lettered.
HTML Tags for Text Elements | Syntax | Description |
---|---|
<P>...</P> | Defines a paragraph |
<BR> | Defines a single line break |
| Inserts a blank space |
<PRE>...</PRE> | Defines preformated text |
<H1> to <H6>...</H1> to </H6> | Defines a heading level |
<!-->...<--> | Defines a comment |
<OL>...</OL> | Defines an ordered (number)list |
<UL>...</UL> | Defines an unordered (bullet)list |
<LI>...</LI> | Defines a list item |