Comments are inserted in HTML code with the help of <!—….—> tag. To insert the text as a comment, type the text between <!– and —> tag, then that text will be ignored by the browser and invisible for the user.e.g.<HTML><BODY><!--This is a comment.-->This is a book</BODY><HTML>