ALERT

[WEBINAR] Building a Business-Driven Data Architecture

Hypertext Markup Language Comment (HTML Comment)

Definition - What does Hypertext Markup Language Comment (HTML 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.

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

Techopedia explains Hypertext Markup Language Comment (HTML 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.

Connect with us

Techopedia on Linkedin
Techopedia on Linkedin
Tweat cdn.techopedia.com
"Techopedia" on Twitter


'@Techopedia'
Sign up for Techopedia's Free Newsletter!

Email Newsletter

Join thousands of others with our weekly newsletter

Resources
Free Whitepaper: The Path to Hybrid Cloud
Free Whitepaper: The Path to Hybrid Cloud:
The Path to Hybrid Cloud: Intelligent Bursting To Amazon Web Services & Microsoft Azure
Free E-Book: Public Cloud Guide
Free E-Book: Public Cloud Guide:
This white paper is for leaders of Operations, Engineering, or Infrastructure teams who are creating or executing an IT roadmap.
Free Tool: Virtual Health Monitor
Free Tool: Virtual Health Monitor:
Virtual Health Monitor is a free virtualization monitoring and reporting tool for VMware, Hyper-V, RHEV, and XenServer environments.
Free 30 Day Trial – Turbonomic
Free 30 Day Trial – Turbonomic:
Turbonomic delivers an autonomic platform where virtual and cloud environments self-manage in real-time to assure application performance.