HTML-Kommentar-Tag | Beispiele für HTML-Kommentare | Codegenerator für HTML-Kommentare
<!-- This is an HTML comment -->
Offenes Trennzeichen für Kommentare:
<!--
Schließendes Trennzeichen für Kommentare:
-->
Verwenden Sie informative Textkommentare, wenn Sie dem Code Erläuterungen hinzufügen möchten.
Der HTML-Code:
<!-- this is a single line comment -->
<p> some text ... </p>
<!--
this is
a multiline
comment
-->
<p> some more text ... </p>
Die Ergebnisseitenansicht:
some text ...
some more text ...
Verwenden Sie Codekommentare, wenn Sie den Code inaktiv halten möchten.
Der HTML-Code:
<!-- <p> some text ... </p> -->
<!--
<p> some text ... </p>
<p> some text ... </p>
-->
<p> some more text ... </p>
Die Ergebnisseitenansicht:
some more text ...
Advertising