Html Element Tutorial Step by Step

Hello friends, today we will tell you about the HTML element.What is the use of the element and how we can identify

Html Element Tutorial Step by Step


What is Html Element?

tag have open & closed tag know as html element. 

<tag name goes here >Content goes here…</tag name goes here >

Like :

<p>This is Paragraph Text Here we write some text</p>

  • This is Paragraph Text Here we write some text : this html element content
  • <p></p> : this is html element.

Example:

<!DOCTYPE html>
<html>
<title>Html Element Tutorial</title>
<body>

<h1>this is Heading Content</h1>
<p> this is paragraph 
Content.</p>

</body>
</html>

Example Explanation:

  • Open <h1> tag & Close </h1> tag is html element
  • under the open & close Tag  text is element content.

Output:




      What is empty Html Element?

      An element which is without content is called an empty element. like <br> tag Use this tag to separate the line.
      We can use tags like this: <br/>


      Always Put End Tag

      We always have to pay attention that we have not forgotten to put an end tag Why a wrong result will appear in the web page without end tags.

      Example:

      <!DOCTYPE html>
      <html>
      <title>Html Element Tutorial</title>
      <body>

      <h1>this is Heading Content
      <p> this is paragraph 
      Content.

      </body>
      </html>

      Output:

      Always Put End Tag in HTML

      You can see that without end tag the wrong result is showing

      Be the first to comment

      Leave a Reply

      Your email address will not be published.


      *