HTML Elements

HTML ELEMENTS:

An HTML element is defined by a Start Tag, some content and End Tag.

Syntax:

<tagname> content Here </tagname>

Example:

<p> Hello World </p>

<h1> Hello World </h1>

Nested Elements:

If you are writing HTML Element inside another HTML Element that is called Nested Element.

Example:

 

<!DOCTYPE html>

<html lang=“en”>

<head>

  <title>Nested Element Example</title>

</head>

<body>

  <p>Hello World</p>

  <h1>This is Nested Element</h1>

</body>

</html>

 

Output:

Hello World

This is Nested element

Join Our Newsletter