PART 3
Paragraphs
- Normally we use paragraph elements to place text on a Web page.
- Between the and tags, you put the text you want .
- Example:
- Other examples:
- However, the end tag for a P ( ) element is optional in HTML.
- Most Web page creation programs add the end tag of P automatically,
- Therefore, You don’t need to include it.
- Between paragraphs, Web browsers automatically add a bit of space.
- If you want, you can add some extra space by using the line break, or BR element.
- Example:
- Other examples:
- Empty P element : No content between the start and end tags
- Instead of using a BR element, you can usually using an empty P element to create a blank line between paragraphs.
- Nevertheless, this technique doesn’t work for all Web browsers.
- Empty P elements are not allowed under the HTML standard that strictly follow the standard.
- To solve this, put some invisible content into the P element where you need to put in a nonbreaking space with a special code.
- Example:
No comments:
Post a Comment