Leaving Messages and Notes in HTML
Before we get too far, did you know you can leave notes for yourself inside your code as you work?
Comments in code allow developers to leave information that is for other human developers only. Computers and processors ignore comments in code.
Let’s go over a few reasons why you may want to include comments in your code.
- Messages - Primary comments convey code information. Typically, this means why some code was written in a certain way, or may also point out information to those collaborating on code together.
- Reminders - Comments remind you of what you are working on. You may make notes to yourself about your work’s goal or how you think you may go about solving a problem.
- TODO - Use Comments to remind you what else you have to do. Widespread use of comments is to place “
TODO:
“within your code and what you still need to to do. There are even packages from editors, such as Atom, that can show you a list of your remaining TODO’s in a project or highlight your TODO’s for you to see easily. - Notes - They are a way for you to communicate intention and thought to your homework graders this semester.
- Testing - You can turn code snippets on or off by delineating them as comments. This type of debugging is useful when hunting for errors or trying different ways of styling content.
html
- Previous
- Next