HTML Paragraphs
- <p> indicate start tag paragraph and </p> close tag paragraph.
- Browsers automatically add an empty line before and after a paragraph.
- Most browsers will display HTML correctly even if you forget the end tag.
- Forgetting the end tag can produce unexpected results or errors.
Example | |
---|---|
HTML LINE SYNTEX | Preview |
<p>This is a paragraph</p> | This is a paragraph |
<p>This is another paragraph</p> | This is another paragraph |
HTML Line Breaks
- Use the <br /> tag if you want a line break (a new line) without starting a new paragraph:
- The <br /> element is an empty HTML element. It has no end tag.
Example | |
---|---|
HTML BREAK SYNTEX | Preview |
<p>This is<br />a para<br />graph with line breaks</p> | This is a para graph with line breaks |






0 comments:
Post a Comment
Please leave some comment.