HTML elements are the building blocks of web pages.
The web page below is made up of a collection of HTML elements. Each element is outlined in blue and labeled with its name.
HTML elements describe each piece of content on a web page so that the web browser knows how to display it.
Every element that is written in HTML is composed primarily of TAGS, bound by the symbols "<" and ">"
Example: While composing a paragraph element (represented by 'p'), the use of opening tag '<p>' indicates that a paragragh element is being composed
Every tag in HTML when opened, has to close. The closing tag of the element is defined by the symbol '/'.
Example: If I want to compose a paragraph "My Name is Benedict", I would compose it this way:
<p> My Name is Benedict </p>
By now, you may have figured out that the typical element in HTML is defined in the structure as follows:
<opening tag> Text the user can see <closing tag>
In HTML, we also have certain 'attributes' . It follows the opening tag and has the following structure
<opening tag attribute-name="name"> Text the user can see <closing tag>
Example: <h1 id="main"> Portfolio </h1>