Poll: Was this article helpful for you?
You do not have permission to vote in this poll.
Yes
100.00%
1 100.00%
No
0%
0 0%
Total 1 vote(s) 100%
* You voted for this item. [Show Results]

Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Single Line Comment in HTML5
#1
Comments will be ignored by the browser.
You can use comments i.e. to make it easier to read your codeĀ for others when working in a team,
or to make it easier to understand what each part of the code does when trying to teach someone programming,
or for commenting out some parts of the code that didn't work as expected to fix them later.

Single line comments are done as follows:

   

If you have done it correctly your HTML document should look like this now:

   
Also follow me on Youtube for videos about video games:
https://www.youtube.com/channel/UCxfkGVU...2mQ/videos
Reply


Possibly Related Threads…
Thread Author Replies Views Last Post
  Creating hyperlinks in HTML5 Qomplainerz 0 838 07-27-2023, 01:23 PM
Last Post: Qomplainerz
  What's new in HTML5? Qomplainerz 0 565 07-27-2023, 12:48 PM
Last Post: Qomplainerz
  What is HTML5? Qomplainerz 0 528 07-27-2023, 12:43 PM
Last Post: Qomplainerz
  Everything you need to know about HTML5 Qomplainerz 0 551 07-25-2023, 09:50 AM
Last Post: Qomplainerz
  Multi Line Comments in HTML5 Qomplainerz 0 1,924 02-21-2021, 07:00 PM
Last Post: Qomplainerz
  HTML5 Doctype declaration Qomplainerz 0 1,829 02-21-2021, 12:35 PM
Last Post: Qomplainerz
  Basic layout of a HTML5 document on a server Qomplainerz 0 1,857 02-21-2021, 11:38 AM
Last Post: Qomplainerz
  Forcing the browser to read the basic HTML layout as HTML5 Qomplainerz 0 1,820 02-21-2021, 11:22 AM
Last Post: Qomplainerz
Brick Marking UP the Blog in HTML5 Derp 1 4,092 12-10-2020, 10:03 AM
Last Post: WilliamR

Forum Jump:


Users browsing this thread: 1 Guest(s)