Table of contents
What is HTML Elements?
An HTML file is made of elements. These elements are responsible for creating web pages and define content in that webpage. An element in HTML usually consist of a start tag <tag name>, close tag </tag name> and content inserted between them.
Example:-
<p>Example of Element</p>
Tag in HTML
Tags are whose which are enclosed between <"tag name"> however all the tags have starting and closing tags .but some of the tag doesn't have their closing tag they take data as a value through an attribute.
Example:-
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>What is HTML</title>
</head>
<body>
<p>Paragraph Tag </p>
<h1>Heading Tag </h1>
<br>
</body>
</html>
HTML VS XML
The key difference between HTML and XML is HTML is used to display and structure the data,while xml is used for transferring the data.