HTML Element

HTML Element

·

1 min read

The heading elements

Like the paragraph element, heading elements are also used to display text on the screen. They're generally used to create section headings.

<h1> this is heading 1 </h1>
<h2>this is heading 2 </h2>
<h3>this is heading 3 </h3>
<h4>this is heading 4 </h4>
<h5>this is heading 5 </h5>
<h6>this is heading 6 </h6>

The paragraph element

p tag used for writing a paragraph

<p>this is a paragraph about saving the environment </p>
// p tag used for writing a paragraph

The br element

The br tag defines a line break this is an empty element without a closing tag

<p>This is a <br> paragraph with a line break.</p>

The a tag element

a tag is defined as adding a link to your website

<a href="https://www.devpatel.click/">Visit devpatel.click</a>

// href is an attribute that indicates the link's destination.

The img element

img element used to embed an image in a web page.

 <img src="logo.png" alt="logo">