Comments in Punjabi | Comments | HTML Tutorials | CSPunjab.Com

CSPunjab

Title : Comments

Language : HTML - The HyperText Markup Language or HTML is the standard markup language for documents designed to be displayed in a web browser. It defines the meaning and structure of web content. It is often assisted by technologies such as Cascading Style Sheets and scripting languages such as JavaScript.

The comment tag is used to insert comments in the source code. Comments are not displayed in the browsers.

Comments are some text or code written in your code to give an explanation about the code, and not visible to the user. Comments which are used for HTML file are known as HTML comments. Anything written between these tags will be ignored by the browser, so comments will not be visible on the webpage.


HTML Comment Tag

You can add comments to your HTML source by using the following syntax:

<!-- Write your comments here -->

Notice that there is an exclamation point (!) in the start tag, but not in the end tag.

<!DOCTYPE html>
<html>
<head>
<title>Comments</title>

<!-- Conditional Comment -->
<!--[if IE]>
<link href="stupidie.css" rel="stylesheet">
<![endif]-->

</head>    
<body>
<h2>HTML Comments</h2>
<!-- Single Line Comment -->

<!--
<p>Multiline Comment:</p>
<img border="0" src="/media/images/cat.jpg" alt="cat">
-->
<p>CSPunjab.Com</p>

<p>Computer <!-- Science --> Punjab.</p>

</body>
</html>

 

Admin

Innovative tech professional with 17+ years of experience working as a Government Computer Faculty & Programmer. Capable of working with a variety of technology and software solutions and managing databases. Valuable team member who has experience diagnosing problems and developing solutions.

When there's a task that can be done manually in 10 minutes but you find a way to automate it in 10 days. I'm gonna do what's called a Programmer move.