Tags: HTML is the Hyper Text Markup Language, HTML represent by tags. All HTML element is everything from the start tag to the end tag.
Example:
<html> element is the root element of an HTML page </html>
<head> element contains meta information about the HTML page </head>
<title> element specifies a title for the HTML page </title>
<body> element use for all the visible contents, such as headings, paragraphs, images, hyperlinks, tables, lists, etc. </body>
<h1> element defines a large heading </h1>
<p> element defines a paragraph </p>
Attributes: It provide additional information about elements. In HTML attributes use for element height, width, color, size, etc everything you can apply by attributes.
Example:
Code:
<p style=”color:red;”>This is a red paragraph.</p>
Display:
This is a red paragraph.
Code:
<p style=”font-size:20px;”>This is a red paragraph.</p>
Display:
This is a red paragraph.