Multiple line comment in html
Here is my html code. Show
I need to comment from
Mik3NL 3572 silver badges21 bronze badges asked Nov 6, 2017 at 13:57
3 Use this to comment in HTML | source
So you have:
EDIT: Sorry did not realize it was CSS only. Fixed my answer. EDIT 2: I've looked into your question again and noticed that Pete removed an important question of yours, which part you wanted to cross out. The code below should be exactly what you want.
answered Nov 6, 2017 at 13:59
Mik3NLMik3NL 3572 silver badges21 bronze badges 4 In HTML you can comment multiple lines of code with:
answered Nov 6, 2017 at 14:07
SuperpupsiSuperpupsi 771 silver badge8 bronze badges 0 MultiLine comments are allowed in html using the
However do note that comment within a comment i.e. nested comment is not supported in the same way in HTML
In order to nest a comment, replace "--" with "- -". During un-nest, reverse the procedure. This is because the "--" is forbidden.
answered Feb 4, 2021 at 4:26
Sed comments are lines where the first non-white character is a "#." On many systems, sed can have only one comment, and it must be the first line of the script. In HTML a comment is placed between
Note that most scripts ignore this comment style, as it used to help hide scripts from browsers that didn't support scripts. so in scripts you use other commenting markings.
If your page passes other parsing or uses other scripts, you may need to use other markings or tags answered Nov 6, 2017 at 14:26
How do you insert a multiYou can comment multiple lines just by placing them between /* and */.
How do you comment out lines in HTML?To “comment out” a button — or any HTML element— simply wrap the element in the< !
How do you specify single line and multiYou can create a single line comment by putting -- at the start and --> at the end of your comment. You can also make a multi-line comment in HTML by adding at the end of your multi-line comment.
|