Q4. How are comments inserted in an HTML code? Explain with example.
Ans. Comments are written inside the opening(<!) and closing tags(–>) . Any content written as a comment is not displayed by the Web browser.
<TITLE> WELCOME TO HTML</TITLE>
<!— This line will be displayed as comments. –>