In this example you can see how we use the <h1> tag, <h2> tag and <p> tag. <h1> and <h2> tags define headings. <p> tags are used to define paragraphs.
<!DOCTYPE html>
<html>
<head>
<title>Text Examples</title>
</head>
<body>
<h1>Heading Example</h1>
<h2>Subheading Example</h2>
<p>This is a paragraph example</p>
</body>
</html>
Try it yourself!