Comments in HTML

Comments in our HTML file are used for the understanding of our html code . The comments does not displayed in output. They are just create for easiness in understand in the code to read it update it or check it again.

The syntax of comment

<!--     comment syntax     -->

Advantages of comments.

Comments play an important role in programming. They make the code easy to understand.For example if in some office programmer makes a project and give its documentations to another programmer.Without comments in the projects it will be really very difficult for the other programmer to understand its documentation.And comments also not shown in the out put so there is no chance to make interruption in the expected out put of the code.

Abbreviation in HTML

This is a course of <abbr title="hypertext markup language">HTML</abbr>
Hover on the underline text.

Output of above code

This is a course of HTML Hover on the underline text.

Explanation of abbreviation

Sometimes when we find some words like WHO,UK and USA actually these are the short forms and they have there full forms like world health organization, United Kingdom, and United States of America.These full forms are called abbreviation and in html document they are used by "abbr" tag.


Use the comments in your code. It is very helpful.

The Best

Comment here

If you have any query, if you want to know something about any of technical course related to computer science field, if you have any suggestion about relevant to uploaded content or if you anything wrong here (any mistake in content) than please contact us. Keep in mind, comment should be according to community guidelines.