Comment Out HTML

What is Comment Out:-

In computer programming, a comment is a programmer-readable explanation or annotation in the source code of a computer program. They are added with the purpose of making the source code easier for humans to understand, and are generally ignored by compilers and interpreters.
                                 As we know to start a comment we need to use <!-- and to end a comment we need to use --> . In following Example You can comment out in h2 element then a user can seen your subheading in your website.














For Example:

<html>
<head>
<title> your web page title name </title>
</head>
<body>
<!--
<h1> your first heading </h1> 
-->
<h2> Your subheading which is commented out</h2>
<!--
<p> your paragraph </p>
-->
</body>
</html>


Output:






Next Topic Delete HTML Element









Please Share To Other:

Post a Comment

0 Comments