<h1>Heading One</h1>
<h2>Heading Two</h2>
<h3>Heading Three</h3>
<h4>Heading Four</h4>
<h5>Heading Five</h5>
<h6>Heading Six</h6>
This will produce the following result −
<p>This element has some text content.</p>
This will produce the following result −
<div>
<h1>This is a heading in a div element</h1>
<p>This is some text in a div element.</p>
</div>
This will produce the following result −
<p>This is a paragraph. <span>This has a part of paragraph</span>.</p>
This will produce the following result −
<p>Lorem ipsum dolor sit amet consectetur, adipisicing elit. <br/> Sequi, ipsum.</p>
This will produce the following result −
<div>
<h1>This is heading one</h1>
<hr />
<p>This is a paragraph.</p>
</div>
This will produce the following result −
<a href="https://www.google.com">Link</a>
To open a link in another tab:
<a href="https://www.google.com" target="_blank">Link</a>
This will produce the following result −
It’s main and most commonly used attributes are
src="url"
It is used to specify the path of the image.
alt="text"
It is used to display alternate text for an image, if the image for some reason cannot be displayed.
width and height in pixels.
<img src="./img.png" alt="book-img" width="400" height="200">
This will produce the following result −