HTML Paragraph Tag

https://www.itcomputerguruji.com/2021/04/html-paragraph-tag.html

Working with Paragraph in HTML:-

HTML paragraphs are defined with <p> tag. A paragraph always start with a new line.

  1. To indicate the beginning of a paragraph, enter an opening <p> tag in the <body> section of your code.
  2. To mark the end of a paragraph, place the closing </p> tag at the end of your paragraph.
  3. To align a paragraph, add the align attribute to the paragraph tag: <p align=”right”>
  4. Set the align attribute equal to left, right, center, or justified


Exercise :-

<html>
<head>
<title>Working with Paragraph</title>
</head>
<body>
<p>Type  paragraphs here </p>
<p align=”right”>HTML only recognizes single spaces between characters. Other than a single tap on the space bar, HTML has little regard for how you type things. What it does have regard for is tags.</p>
</body>
</html>





Post a Comment

0 Comments