To know about html adding paragraph and page breaks

Asked By 0 points N/A Posted on -
qa-featured

Hello, I want to know about html adding paragraph and page breaks.

Is anyone can help me to know about those items?

SHARE
Best Answer by Taylor Laura
Answered By 0 points N/A #163212

To know about html adding paragraph and page breaks

qa-featured

Hello,

Adding paragraph is where you can write your topic for separate from your written topic.

There auto create the line break.

Example: <p>Here you can write your topic.</p>

Page break tag use for forcefully line break. When you want line break you can use <br> tag.

Example: <p> Here you can<br>

                        Write your topic</p>

This is epically tag where has to ending Tag.

Thanks.

Best Answer
Best Answer
Answered By 0 points N/A #163213

To know about html adding paragraph and page breaks

qa-featured

Hi Brayen,

 
The <p> element is mainly for writing paragraphs. Paragraphs in the <p> element is continuous and doesn't wrap up.
 
The <br> element whose only job is to give you a line break. It doesn’t have any content because it is just for that purpose.  Now since it doesn’t have any content this element can be used without using a closing tag.
 
Just simply type <br> and it will represent the same thing as having a closing tag.
 
Putting it all together in an HTML document:
 
<html>
     <head>  
                   <title>  This is the Title </title>
     </head>
    <body>
           <h1> Header 1</h1>
                  <p> I am learning HTML and wonders how paragraphs and breaks are used.</p>
 
           <h2> Header 2</h2>
                  <p> This is a long sentence so I might add a break here <br> so I can start on the next line.</p>
     </body>
</html>
 
Observe how used the <p> and <br> elements.  This is how it looks like on a web browser.
 

Login/Register to Answer

Related Questions