Html help - how do I comment out a section?

I have a section of code that I don’t want to remove, but just want to temporarily disable on a web page. How do I do that?

Answer #1

I would cut the code out and put it back in later

Answer #2

Ok, I did eventualy find the answer myself, so I’ll post it here for reference..

The Comment Tag…
If you are writing an HTML document, sometimes you may want to put little reminders to yourself with your code so that you will be able to interpret your coding better. A comment will not appear in a web browser when the page is displayed… it is only visible when the source code is viewed. You start commented text with

“ “.

(I had to use quotes and insert spaces to make it show)

source: http://www.davesite.com/webstation/html/chap06.shtml

Answer #3

Yes, I was just trying to find a way around that - if I cut it out and put it somewhere else, I’ll never find it again. Thats the problem.

More Like This
Funadvice Logo

© FUNADVICE 2025 · 212bydesign LLC

Answering questions since 2006

[email protected]

Miami, Florida, USA