Comments = We use comments in our code because if someone will read the code in the future he or she can understand what I write and why and we write comments in HTML by pressing the button ctrl + forward slash.
What are elements, tags and attributes:-
We write any content between tags so we can say that we use the tags for writing the content and we have an opening tag (<>) and closing tag (</>) and between we write content like this <> content </> and some tags are self-closing tags like this (</> ).
Elements when we write tag and content both means <> content </> this full line is an element.
Attribute = attribute is like a label or tag that you add to an HTML element to define its properties and functions.
Example: an example is creating a link, you would use the "a" element and the "href" attribute to specify the link's destination. It would look like this:
<a href="example.com">Click here</a>
In this example, href is the attribute and "http://www.example.com" is the value of the attribute.
What are Entities:- This is a special sign greater than and smaller than an @ this sign is called entities and we use < or > in tags as well if we write greater than and is smaller than with tags sign so how our system will understand that what is this so for this we use entities in HTML like for greater than > and for less than < or < we use this and we called this character entity we use this in HTML for show the reserved character.
A reserved character entity looks like this & entity_name; = >
Or
& #entity_name ; = <
PS:- if there is any mistake so please tell me in the comment section.😅