Computer Applications

Distinguish between <P> tag and <BR> tag with the help of an example.

HTML Intro

3 Likes

Answer

<BR> tag is a line break tag that is used to end one line and jump to the next line without showing any line in between. It is an empty element.
<P> tag is a paragraph tag that is used to define a paragraph of text. It is a container element.

The following example highlights the difference between the two:

<P>HTML, the markup language so grand,<BR>
Structures the web with tags in hand.</P>
<P>From headers to links, it guides the way,<BR>
Content and style, it helps convey.</P>

Answered By

1 Like


Related Questions