Hypertext Markup Language Comment

Why Trust Techopedia

What Does Hypertext Markup Language Comment Mean?

A Hypertext Markup Language comment (HTML comment) is written by a Web developer and acts as a reference during a development project. A developer is able to view HTML comments during development, but this code cannot be seen by website users. Comments can be included within many file types, including HTML, XML and CSS.

Advertisements

HTML comments are commonly used to explain complex table structures or provide documentation of a development project.

Techopedia Explains Hypertext Markup Language Comment

Most programming languages and environments include comments, which may serve any of the following functions:

  • A method of describing and simplifying a complex part of a project
  • Offering more details about why code is written in a particular way, allowing developers to understand each other
  • Allowing unconfirmed code to be temporarily omitted without deletion

The last listed function is quite useful when unconfirmed code is verified and later turned into an essential part of the project. When this occurs, the developer removes the comment symbols, and the previously hidden code becomes functional.

There are numerous recommendations on writing comments. For example, developers should use simple words as often as possible, as a comment is meant to make code more understandable. Before continuing a project, all earlier comments should be double-checked.

Certain developer tools support the easy inclusion of comments. Example tools are Dreamweaver page notes and FrontPage file summary.

Advertisements

Related Terms

Margaret Rouse
Technology expert
Margaret Rouse
Technology expert

Margaret is an award-winning writer and educator known for her ability to explain complex technical topics to a non-technical business audience. Over the past twenty years, her IT definitions have been published by Que in an encyclopedia of technology terms and cited in articles in the New York Times, Time Magazine, USA Today, ZDNet, PC Magazine, and Discovery Magazine. She joined Techopedia in 2011. Margaret’s idea of ​​a fun day is to help IT and business professionals to learn to speak each other’s highly specialized languages.