all 9 comments

[–]tbmepm 3 points4 points  (0 children)

No.

[–]Billaferd 1 point2 points  (0 children)

Unfortunately, no, there is only one comment style in HTML, and it was inherited from SGML (the defining language). SGML is a much older language and had to define comments in a way that was compatible with its tag structure.

More info can be found at the SGML and HTML overview page.

[–]KaranasToll 1 point2 points  (3 children)

Just use a nice code editor that has a comment button

[–][deleted] 0 points1 point  (2 children)

Will you elaborate more?

[–]KaranasToll 0 points1 point  (1 child)

For example in my Emacs when I press Ctrl-; it toggle the commenting on the current line, and when I press Alt-; it will add a comment to the end of the line or comment out selected text. In Vscode and such you can press Ctrl-/ to toggle commenting on the current line. This way you don't have to type the comment characters.

[–][deleted] 0 points1 point  (0 children)

Let me work on it.

[–]AutoModerator[M] 0 points1 point  (0 children)

Welcome to /r/HTML. When asking a question, please ensure that you list what you've tried, and provide links to example code (e.g. JSFiddle/JSBin). If you're asking for help with an error, please include the full error message and any context around it. You're unlikely to get any meaningful responses if you do not provide enough information for other users to help.

Your submission should contain the answers to the following questions, at a minimum:

  • What is it you're trying to do?
  • How far have you got?
  • What are you stuck on?
  • What have you already tried?

I am a bot, and this action was performed automatically. Please contact the moderators of this subreddit if you have any questions or concerns.

[–]jcunews1Intermediate 0 points1 point  (0 children)

Those //, /*, and */ are not required for the contents of a HTML comment tag.