What is HTML element?

More options for you.


General KnowledgeEnglish GrammarMathScienceIQ-TestQuiz-Test

HTML element is the most important part of HTML document.

element-pic here

We are now ready to learn the best part of HTML that is called element.
Some contents between openning and colsing tags are called HTMl elements. like:
<p> This is a pargraph </p>
Some HTML elements have no content are called empty elements.
Empty element has no closing tag, it's colsed in the openning tag with a foreward slash (/) before the grater than(>) angle brackate. like:
<br/>(it's a line break tag)

Syntax (structure) of HTML element.

We all might know what the HTML elements are with this chapter. So we may go through ahead right now.
Let's try to know how the syntax/structure of HTML element to be.

Opening Tag Element Content Closing Tag
<h1>

This is heading one

</h1>
<p>

This is a paragraph

</p>
<img/>

None

None



Example of HTML document:

HTML Editor

<html>
<body>
<h1> This is heading one. </h1>
<p> This is a paragraph. </p>
</body>
</html>

Web Browser

This is heading one.

This is a paragraph.

<html> Element:
Everything between <html> and </html> are <html> elements.
The element contenet is another HTML element. Like: <body> element.
<body> Element:
Everything between <body> and </body> are <body> elements.
The element contenet is another HTML element. Like: <h1> element.
<h1> Element:
Everything between <h1> and </h1> are <h1> element.
The element contenet is "This is a heading".
<p> Element:
Everything between <p> and </p> are <p> element.
The element contenet is "This is a paragraph".



More options for you.


General KnowledgeEnglish GrammarMathScienceIQ-TestQuiz-Test