Paragraph in HTML | HTML paragraph

 Paragraph In HTML

HTML paragraph is use to display paragraph on web page. <p> tag is use for paragraph. Paragraph tag start with <p> and end with </p>. Paragraph is display text.

Example


<html>
<head>
    
    <title>Paragraph</title>
</head>
<body>
    <p>This is a simple paragraph</p>
</body>
</html>

Result

This is a simple paragraph


Horizontal Line in HTML


  • The <hr> tag defines a thematic break in an HTML page.
  • It will draw a horizontal line between two tags.
  • It has no ending tag.

Example

<html>
<head>
    
    <title>Paragraph</title>
</head>
<body>
    <p>This is a <br> simple paragraph</p>

</body>
</html>

Result

This is a
 simple paragraph



Break Line in HTML

  • The <br> tag is use to break line.
  • <br> tag has no ending tag.
  • This tag is use for formatting the text or document.

Example


<html>
<head>
    
    <title>Paragraph</title>
</head>
<body>
    <p>This is a simple paragraph1</p>
    <hr>
    <p>This is a simple paragraph2</p>
</body>
</html>

Result

This is a simple paragraph1
This is a simple paragraph2

Comments

Popular posts from this blog

Getting Started with JavaScript

JavaScript fundamentals

How to create a list group with css