Categories: Html

Element Structure of HTML

Share

HTML documents consists of multiple element structure which includes start tag, attribute, body element, end tag etc.

Element Structure:

The main tag of HTML is <html> and </html> which is start tag and end tag.
The content element is written between two tags i.e. body tag.
For example,

<p>Hello there!</p>

Few HTML elements have no body i.e. <br> tag which do not require to close tag.

Read Also: Meta Tags in HTML

An attribute can be added to HTML element.
For example,

<div id="one" style="background-color:#333333">...</div>

You can add tag inside another tag i.e. called nested element.
For example,

<div id="one" style="background-color:#333333">
<span>Hi there...</span>
</div>

These are the basic building blocks that you will find yourself using on any web page.

Published by
Html Developer
Tags: htmlweb

Recent Posts

India General Elections 2024: A Historic Event

The 2024 Indian General Elections are taking place now, with every individual in the country…

11 hours ago

Unveiling the Ultimate Car Cleaning Kit: Your Road to a Pristine Ride

Introduction: In order to stay clean, car care all in the world is not only…

18 hours ago

Oppo vs Vivo: The Race to be the Number One Smartphone in India

Oppo and Vivo are two smartphone makers in India that manufacture quality mobile phones at…

1 day ago

10 Reasons Why Technology is Good for Education

Educational technology has been very helpful in the era of ever-advancing technology. It opens millions…

2 days ago

Chat GPT Login: Step-by-Step Guide for Beginners

Have you ever thought of a world where asking the Internet for information feels like…

2 days ago

The Sharp-Looking Guy: 5 Essential Tips for Men to Become Sharp

We've gotten so used to seeing men streetwear joggers, ripped jeans, and sleeveless shirts. Hair…

3 days ago