Login
Your Email
Pasword
Home
Write
Trending
History
Liked
Earning

What are HTML Elements?

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

Do you have similar website/ Product?
Show in this page just for $5 (for a month)
Create an Ad
0/60
0/180

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.

CONTINUE READING
HTML
Elements
HTML
Ayesha
Tech writer at newsandstory