You are viewing the article How to Annotate in HTML at Tnhelearning.edu.vn you can quickly access the necessary information in the table of contents of the article below.
wikiHow is a “wiki” site, which means that many of the articles here are written by multiple authors. To create this article, 16 people, some of whom are anonymous, have edited and improved the article over time.
This article has been viewed 4,552 times.
Commenting on the code will allow you to leave reminders and explanations for yourself and other programmers while working on the site. Comments can also be used to disable code snippets when you’re testing or working on a new feature that’s still incomplete. Learning how to annotate properly will make programming more productive for you and your colleagues.
< html > < head > < title > Test Caption </ title > </ head > < body > <!-- This code generates a paragraph --> < p > This is a website </ p > < / body > </ html >
- You need to make sure there is no space between the caption tag. For example, the < !-- tag cannot enable commenting. Inside the caption tag, you can add as much spacing as you want.
< html > < head > < title > Caption Experiment </ title > </ head > < body > <!-- Captions can be as long as you want. Anything inside the tag has no effect on the code on the web page. --> < p > This is website </ p > </ body > </ html >
< html > < head > < title > Caption testing </ title > </ head > < body > < p > View this message </ p > < img src = "/images/image1.jpg" > <! -- Hide this image now <img src="/images/image2.jpg"> --> </ body > </ html >
< html > < head > < title > VBScript </ title > </ head > < body > < script language = "vbscript" type = "text/vbscript" > <!-- document . write ( "Hello World!" ) //--> </ script > </ body > </ html >
[1] X Research Source
- The // at the end of the tag will prevent the script from executing the comment feature if it is supported by the browser.
Advice
- Annotating is a good habit in programming because it helps you remember how things work and will be easier for you to come back to code later.
wikiHow is a “wiki” site, which means that many of the articles here are written by multiple authors. To create this article, 16 people, some of whom are anonymous, have edited and improved the article over time.
This article has been viewed 4,552 times.
Commenting on the code will allow you to leave reminders and explanations for yourself and other programmers while working on the site. Comments can also be used to disable code snippets when you’re testing or working on a new feature that’s still incomplete. Learning how to annotate properly will make programming more productive for you and your colleagues.
Thank you for reading this post How to Annotate in HTML at Tnhelearning.edu.vn You can comment, see more related articles below and hope to help you with interesting information.
Related Search: