Enter your email id to get regular update free
Login
Your Email
Pasword

What are HTML Elements?

An HTML element consists of a start tag and end tag with the content inserted in between.

HTML Elements
The HTML element is everything from the start tag to the end tag
E.g:

<p>My first program.</p>

<p> and</p> these are the start and end tags.

"My first program" is the content that is inserted between these 2 tags.

<h1></h1> these are tags for heading.

 Empty elements do not have an end tag for example <br> element is for line break.

Nested HTML Elements

All HTML documents consist of nested HTML elements.

E.g:

The <html>element defines the whole document and has a start and an end tag .
The element content is another HTML element (the <body>element).
<head></head>,<p>,<body> these all contain nested elements.
HTML
Elements
HTML
Ayesha
Tech writer at newsandstory
Total 145 views