asp.net.ph

Skip Navigation LinksHome > Abakada: Back to Basics > Language References > HTML Elements > HTML Comment Element

<HTML Comment> Element


Prevents any enclosed text or HTML source code from being parsed and displayed in the browser window.

Remarks

Comments can contain other HTML elements. Comments do not nest.

NOTE: Both start and end tags are required.

Attributes

The <htmlcomment> element has no attribute of its own, but supports global attributes common to all HTML elements.

Example

<!-- This text will not appear. -->
See Also


Need a break ?
Suggested Reading

Check out related books at Amazon

© 2025 Reynald Nuñez and asp.net.ph.

If you have any question, comment or suggestion,
please send us a note