April 27, 2008...3:12 am

Comment out HTML line

Jump to Comments

I get frustrated editing HTML code that some one else has created. I am an expert by no means, so my tech advisor let me know how to comment out a line of HTML code.

< !–”code”–>

“code”  is the HTML text you want to comment out.

Example to use this code:

I want to see which image file is not showing up on my webpage. I go to that line of code “href=image.pdf ” and comment it out. Then I preview the page. If it is not the right image I can remove the referenced  statement< !–”code”–> and move on. It is easier than deleting a line or cutting then pasting back.

Leave a Reply

You must be logged in to post a comment.

You must be logged in to post a comment.