HTML Paragraph

When working with HTML documents, you would need to use the paragraph tag <p> in order to insert white space between two paragraphs.

You can use the following syntax when writing a paragraph for your HTML document:

<p>Paragraph 1 starts here</p>

Here are some examples of how to use headings in HTML:You may skip on adding </p> at the end, and most browsers will ignore it and display your paragraph right. But some browsers may return errors when you do not put </p>.And that's everything you need to know first about titles, headings and paragraphs in HTML.

tag in HTML is used to define a paragraph of text. It is a block-level element that creates a new line before and after the content it contains.

Example

<!DOCTYPE HTML>
    <html>
      <head>
        <meta http-equiv="Content-Type" content="text/html; charset=utf-8">
        <title>Title of the Document</title>
      </head>
      <body>
        <p>This is some paragraph text.</p>
        <p>Here is another paragraph of text.</p>
      </body>
  </html>

In the example above, we have two <p> tags, each containing a sentence. When the HTML is rendered in a browser, each <p> tag will create a new line before and after the text it contains, resulting in two separate paragraphs.

By using headings, the webpage can be structured and organized, making it easier for users to read and understand the content.

HTML Display

The <p> tag displays in the browser as a block-level element that creates a new line before and after the content it contains. When the browser renders a webpage that includes one or more <p> tags, it will display each paragraph on its own line with some space above and below it

By default, the browser will apply some basic styling to the <p> tag, such as setting the font size and line height. However, these styles can be overridden using CSS to achieve a custom look and feel for your webpage.

Important of Paragraphs:

<p> tag is important because it provides a way to structure content on a webpage into coherent blocks of text. By using the

Additionally, the <p> tag is useful for styling purposes. Since it is a block-level element, it can be targeted with CSS (Cascading Style Sheets) to control things like font size, color, and spacing. This allows web designers to create visually appealing pages that are easy to read and navigate.

One important thing to note about the <p> tag is that it should be used for actual paragraphs of text, not just for creating line breaks.

If you want to create a line break without starting a new paragraph, you can use the <br>tag instead. Using the <p> tag improperly can lead to formatting issues and make your content more difficult to read.

Now that you have learnt about paragraph and it useful for creation of website, lets show you how to Style your page in the next chapter.