How to use comments in HTML5 and CSS3 | Introduction to HTML5 and CSS3 | Learn HTML5 and CSS3
Want to learn HTML5 and CSS3 from scratch?
This is the seventh episode of my “Learn HTML5 and CSS3” course. In this course, we will learn everything about how we can create markup for a website. At the end of the course, I will add some full tutorials where I will be creating famous websites from scratch. So, if you have any suggestions, just let me know and I might make a video about it!
In this episode, we will be adding comments in HTML5 and CSS3. I will also talk about the advantages of using comments and why you should use comments. There are more reasons why you should use comments than I explained in the video so I will add a couple extra right here.
1. Commenting code blocks out
Being able to comment out in HTML helps in easy debugging or testing. Sometimes you find errors in your code but aren't sure where or what is the exact problem.
2. Understanding your own code later on
html comment tag provides us flexibility to understand it better way. According to our experience, Finest developers need to memorize it and utilize it during writing code
3. Comments show respect for the next developer to read your code
Source code should be written in the way that you yourself would most like to encounter unfamiliar code
Don’t use redundant and useless comments inside your code because it will make your comment complicated. I recommend you to utilize comments while coding.
My official websites for questions or anything else:
https://www.darynazar.com
Follow me on social media
https://www.instagram.com/darynazar/
https://www.linkedin.com/in/dary-nazar-61502ab2/
Useful products for programming and recording that I use
Microphone I use:
https://amzn.to/39r7qVD
My laptop stand:
https://amzn.to/32PULcn
External monitor:
https://amzn.to/2wzxPSl
Reading LED Desk lamp:
https://amzn.to/2PNMoJ5
External Hard Drive to save projects:
https://amzn.to/2TEjWdI
Laptop I use:
https://amzn.to/3aspOxp