Html file is a group of elements ,elements are responsible for the html file.

Element consist of start tag and end tag

Example:-

<h1>Hello word</h1>

Here

<h1>: start tag

Hell word : content

</h1> :end tag

Void element(empty elements):

In html all elements are not required start tag and end tag (like <br> this tag does not required end tag for this tag we can called as empty element or void element)

Example:

<p> hi this is my first program</p><br>

<hr>

Block level And inline HTML Element

All elements are categorised in two categories.

1.Block-level Element

2.Inline Element

1.Block-level element-

These elements helps to structure main part of application by dividing in similar blocks

Example:

<ol>,<div>

2.Inline Elements:

These elements help to differentiate the part of the given text in a specific function.

Example : <strong><span>

جواب دهید

نشانی ایمیل شما منتشر نخواهد شد. بخش‌های موردنیاز علامت‌گذاری شده‌اند *