About Lesson
Defination:
HTML paragraphs are defined with the <p> tag. These have both opening and closing tags. So anything mentioned within <p> and </p> is treated as a paragraph. Most browsers read a line as a paragraph even if we don’t use the closing tag i.e, </p>, but this may raise unexpected results. So, it is a good convention, and we must use the closing tag.
Syntax:
<p>.........content........</p>
Example:
HTML
<!DOCTYPE html>
<html>
<head>
<title>Html Paragraph</title>
<head>
<body>
<h1>HTML paragraph</h1>
<p>Lorem ipsum dolor, sit amet consectetur adipisicing elit. Ad, undveritatis?
Vitae repudiandae iusto quod Laborum officiis nisi odit facere repudiandae
perspiciatis enim adipisci. Voluptate esse dolorem et impedi quis!</p>
</body>
</html>