Basic HTML Paragraph

tag and
tag using notepad 2021

 HTML Paragraphs:

 The Paragraph program in HTML: 


Learn HTML Language online





  • HTML Stands for HyperText Markup Language and it is mostly used in the creation of websites.
  • You should know that HTML cannot be sure how it is displayed in paragraphs. 
  • It auto - deletes the extra spaces and you cannot change the display.
  • The display of paragraphs is based on the size of the screen of your computer.
  • <p> element defines the paragraph.
  • <hr> tag can be useful to show the content in a horizontal line by giving thematic break in the HTML page.
  • <br> tag can be useful to break the line i.e, line breaks in the paragraph.
  • <pre> tag can be helpful to show the content in a pre-formatted way. It is useful to write poems on the HTML page.


Source code: 

<h1> Heading 1 you want to type </h1>
<p>This is for some text.</p>
<hr>
<h2> Heading 2 if u want to type </h2>
<p>This is for some other text.</p>
<hr>

Expected Output: 

                                  



Explanation:

Steps to Write the code:

Step 1: Open Notepad and type the above code of the paragraph program.

Step 2: Save the file on your computer by clicking the File and click Save As and name the file as per your interest and make sure to name the file as .htm for example abcd.htm

Step 3: Open the saved file and you can get the required output.


Post a Comment

Previous Post Next Post