Computer Applications
What is the difference between <br> tag and <p> tag in context of HTML ? Illustrate using suitable examples.
Answer
| <P> tag | <BR> tag |
|---|---|
| The paragraph tag helps to identify and separate paragraphs in an HTML document. | The line break tag avoids blank spaces between the lines. |
| It is a container tag. | It is an empty tag. |
| For example, <P> This is paragraph 1. </P> <P> This is paragraph 2. </P> | For example, This is paragraph 1. <BR> This is paragraph 2. <BR> |
| Output This is paragraph 1. This is paragraph 2. | Output This is paragraph 1. This is paragraph 2. |
Related Questions
Illustrate the use of the radio button input type on an HTML form with an appropriate code and the corresponding output.
Write the difference between <ol> and <ul> tags in HTML. Also write suitable examples of each to illustrate the difference.
How do Intellectual Property Rights provide protection to digital work? Write any two ways to avoid plagiarism.
Consider the following URLs :
https://www.practicepayment.com— URL1http://www.practicepayment.com— URL2(a) What is the difference between URL1 and URL2 ?
(b) Which of the two URLs will you prefer to use and why ?
(c) Expand www.