Edtech Home About Classrooms Classes Lessons and FAQs
Educational Technologies Center for Life Sciences

The Comment tag <!-- ..... -->

Sometimes it's useful to temporarily hide something from being displayed on your web page. It may be a bit of code that you're working on - or perhaps an announcement that needs to be there only periodically. Rather than deleting it from your page, just enclose it with the comment tag and the browser will ignore it. When you want it to appear, just delete the tags.

This is also handy if you want to leave messages for someone else working on the site.

Exercise 1. Bracket your images with the comment tag, save the file, and reload in your browser and see them disappear.



<!--IMG SRC="images/picture.jpg -->




© 2004 - E. Barbara Meyer - EdTech Center - Life Sciences - University of Illinois - Urbana, IL USA