HTML-kommenttitunniste | HTML-kommenttiesimerkkejä | HTML-kommenttikoodigeneraattori
<!-- This is an HTML comment -->
Kommentin avoin erotin:
<!--
Kommentin sulkuerotin:
-->
Käytä informatiivisia tekstikommentteja, kun haluat lisätä koodiin selityksiä.
HTML-koodi:
<!-- this is a single line comment -->
<p> some text ... </p>
<!--
this is
a multiline
comment
-->
<p> some more text ... </p>
Tulossivun näkymä:
some text ...
some more text ...
Käytä koodin kommentointia, kun haluat pitää koodin passiivisena.
HTML-koodi:
<!-- <p> some text ... </p> -->
<!--
<p> some text ... </p>
<p> some text ... </p>
-->
<p> some more text ... </p>
Tulossivun näkymä:
some more text ...
Advertising