HTML Element


All HTML Element has opening and closing part, with some exceptions that some doesn’t obey to this rule.

All content are placed within the open and close tag of the element.

Using the heading tag as an example.

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

heading 1

heading 2

heading 3

heading 4

heading 5
heading 6
 Paragraph  Element
<p> This paragraph </p>
This paragraph
tips: HTML5 does not require empty elements to be closed.