HTML element is the most important part of HTML document.
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)
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|
This is heading one
This is a paragraph
<h1> This is heading one. </h1>
<p> This is a paragraph. </p>
This is a paragraph.
Everything between <html> and </html> are <html> elements.
The element contenet is another HTML element. Like: <body> element.
Everything between <body> and </body> are <body> elements.
The element contenet is another HTML element. Like: <h1> element.
Everything between <h1> and </h1> are <h1> element.
The element contenet is "This is a heading".
Everything between <p> and </p> are <p> element.
The element contenet is "This is a paragraph".