HTML&CSS
September 21, 2021

HTML Elements

Introduction

We have already discussed HTML and its importance in our previous blog. In today’s article, you will get to know about what HTML Elements are and their types which helps in the development of eye-catchy and business-oriented websites. So, let’s get started. Anything from the start tag to the end tag is considered an HTML element. Attributes to the elements can also be added. However, it is optional.

<tagname attribute=”rule”>Contents here….</tagname>

Example

<div> <title=”div element” style=”color: green;” >Block Element</div>

Empty HTML Elements

Empty elements are HTML elements that have no content i.e., we cannot write <hr> some content </hr> or <br> some content </br>

Nesting HTML Elements

Most HTML elements (except empty elements) can contain any number of additional elements, which are made up of tags, attributes, content and much more.

Check out this html tutorial blog and run examples by yourself…