OneStopTesting.com - Testing EBooks, Tutorials, Articles, Jobs, Training Institutes etc.
OneStopGate.com - Gate EBooks, Tutorials, Articles, FAQs, Jobs, Training Institutes etc.
OneStopMBA.com - MBA EBooks, Tutorials, Articles, FAQs, Jobs, Training Institutes etc.
OneStopIAS.com - IAS EBooks, Tutorials, Articles, FAQs, Jobs, Training Institutes etc.
OneStopSAP.com - SAP EBooks, Tutorials, Articles, FAQs, Jobs, Training Institutes etc.
OneStopGRE.com - of GRE EBooks, Tutorials, Articles, FAQs, Jobs, Training Institutes etc.
Comments in HTML | Articles | Recent Articles | News Article | Interesting Articles | Technology Articles | Articles On Education | Articles On Corporate | Company Articles | College Articles | Articles on Recession
Home » Articles » Comments in HTML
Comments in HTML
Article Posted On Date : Thursday, March 22, 2012
Comments in HTML
Advertisements
The comment tag is used to insert a comment in the source code which increases the documentation and readability of the program. A comment will be ignored by the browser. Comments are optional, they can assist you greatly. They are simply there for the programmer's benefit. Comments are a part of the HTML code and is used to explain the code. This can be helpful for other HTML coders when trying to interpret someone else's code. You can use comments to explain your code, which can help you when you edit the source code at a later date. You write comments like this: <!-- Write your comment here --> Comments always start with <!-- and end with -->. This tells the browser when a comment begins and ends. You can also spread comments over many lines, like this: <<!-- This comment is spread over lines comment can be written on different several lines. --> Example HTML Code: html> <head> <title>Use of comments in HTML page</title> </head> <body> <!-- Code to create order list in HTML --> <h1> Order list Example</h1> <ol type="i"> <li>TV <li>Sony <li>Panasonic <li>LG <li>Samsung </ol> </body> </html> There are three main reasons you may want your code to be ignored. Writing notes or reminders to yourself inside your actual HTML documents. Scripting languages such as JavaScript require some commenting. Temporarily commenting out elements especially if the element has been left unfinished. Conclusion: Though it is a simple article but it helps you a great deal while coding. You can't ignore the importance of comments in coding.
Amazon.in Widgets